Index: trunk/psphot/src/psphotSourcePlots.c
===================================================================
--- trunk/psphot/src/psphotSourcePlots.c	(revision 15000)
+++ trunk/psphot/src/psphotSourcePlots.c	(revision 16820)
@@ -1,8 +1,12 @@
 # include "psphotInternal.h"
 
-bool psphotSourcePlots (pmReadout *readout, psArray *sources, psMetadata *recipe, psMaskType maskVal) {
+bool psphotSourcePlots (pmReadout *readout, psArray *sources, psMetadata *recipe) {
 
-    // bool status = false;
+    bool status = false;
     psTimerStart ("psphot");
+
+    // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
+    psMaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels
+    assert (maskVal);
 
     // the source images are written to an image 10x the size of a PSF object
