In psphot and psphotStack accept exposure number images (EXPNUM) as inputs. If supplied set the N_FRAMES value for each source based on the value in the EXPNUM image.