Be aware that any speck of dust or dirt on a filter used in front of a pinhole or between the pinhole and film will be as well-focused as everything else in the field of view.

Lee