added flag argument 'mask' to bcd_phot.pro to switch on/off the mask checking functionality -- still expects the mask file path either way