fixed bugs in bcd_phot.pro: finite pixel value check was not indexing the x/y arrays, and the mask check section was using the same index variable in an internal for loop as the outer loop - infinite loop resulted