Index: trunk/psphot/src/psphotReadout.c
===================================================================
--- trunk/psphot/src/psphotReadout.c	(revision 18914)
+++ trunk/psphot/src/psphotReadout.c	(revision 18973)
@@ -61,4 +61,11 @@
         psLogMsg ("psphot", 3, "unable to find detections in this image");
         return psphotReadoutCleanup (config, readout, recipe, detections, psf, NULL);
+    }
+ 
+    // XXX test write out the footprint image
+    if (0) {
+	psImage *footprintImage = pmSetFootprintArrayIDs (detections->footprints, true);
+	psphotSaveImage (NULL, footprintImage, "footprints.1.fits");
+	psFree (footprintImage);
     }
 
@@ -209,5 +216,4 @@
         psFree (footprintImage);
     }
-
     // remove noise for subtracted objects (ie, return to normal noise level)
     psphotSubNoise (readout, sources, recipe);
@@ -259,9 +265,8 @@
     // measure source size for the remaining sources
     psphotSourceSize (config, readout, sources, recipe, 0);
-
     if (0) {
         psphotSaveImage (NULL, readout->mask, "mask.fits");
     }
-
+	
     psphotExtendedSourceAnalysis (readout, sources, recipe);
 
