Index: /trunk/ppImage/src/ppImagePhotom.c
===================================================================
--- /trunk/ppImage/src/ppImagePhotom.c	(revision 18635)
+++ /trunk/ppImage/src/ppImagePhotom.c	(revision 18636)
@@ -40,4 +40,11 @@
                 return false;
             }
+
+	    // we want to save the MASK as modified by psphot, but not the data or weight
+	    // free the old mask and replace with a memory copy of the new mask
+	    pmReadout *oldReadout = pmFPAviewThisReadout (view, input->src);
+	    pmReadout *newReadout = pmFPAviewThisReadout (view, input->fpa);
+	    psFree (oldReadout->mask);
+	    oldReadout->mask = psMemIncrRefCounter (newReadout->mask);
         }
     }
