added logic to bcd_phot.pro to handle the cases where combinations of bits 2, 4, and 7 are the only bits set within the aperture