Index: trunk/psphot/src/psphotReadout.c
===================================================================
--- trunk/psphot/src/psphotReadout.c	(revision 6117)
+++ trunk/psphot/src/psphotReadout.c	(revision 6311)
@@ -8,4 +8,8 @@
     psStats     *sky     = NULL;
     bool         status;
+
+    psphotSaveImage (NULL, readout->mask, "mask.fits");
+    psphotSaveImage (NULL, readout->image, "image.fits");
+    psphotSaveImage (NULL, readout->weight, "weight.fits");
 
     // measure image stats for initial guess 
