Index: trunk/psphot/src/psphotReadout.c
===================================================================
--- trunk/psphot/src/psphotReadout.c	(revision 6481)
+++ trunk/psphot/src/psphotReadout.c	(revision 6522)
@@ -12,4 +12,7 @@
     // generate a background model (median, smoothed image)
     skymodel = psphotImageMedian (readout, config);
+
+    // optional output of background-subtracted image
+    psphot
 
     // find the peaks in the image
