modified bcd_phot.py to work with the new bcd_phot.pro flag argument -- checks the metadata file for the value of key 'mask' to determine the IDL call