modified get_bcd_phot() to work with the new source ID architecture