I sometimes just hold my hand above the camera thus casting a shade onto the pinhole, but staying out of the angle of view.