Index: trunk/psphot/src/psphotMaskReadout.c
===================================================================
--- trunk/psphot/src/psphotMaskReadout.c	(revision 12792)
+++ trunk/psphot/src/psphotMaskReadout.c	(revision 13593)
@@ -1,6 +1,6 @@
 # include "psphotInternal.h"
 
-bool psphotMaskReadout (pmReadout *readout, psMetadata *recipe) {
-    
+bool psphotMaskReadout (pmReadout *readout, psMetadata *recipe, pmConfig *config) {
+
     bool status;
 
@@ -19,5 +19,5 @@
 
     // psImageKeepRegion assumes the region refers to the parent coordinates
-    psImageKeepRegion (readout->mask, keep, "OR", PM_MASK_BAD);
+    psImageKeepRegion (readout->mask, keep, "OR", pmConfigMask("BAD", config));
 
     return true;
