Index: /branches/eam_branch_20080926/psphot/src/psphotReadout.c
===================================================================
--- /branches/eam_branch_20080926/psphot/src/psphotReadout.c	(revision 19857)
+++ /branches/eam_branch_20080926/psphot/src/psphotReadout.c	(revision 19858)
@@ -37,5 +37,5 @@
 
     // set up the Visual display, display the image, weight, mask (ch 1,2,3)
-    psphotVisualShowImage (readout);
+    psphotVisualShowImage (config, readout);
 
     // generate a background model (median, smoothed image)
@@ -49,4 +49,7 @@
         return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL);
     }
+
+    // display the backsub and backgnd images
+    psphotVisualShowBackground (config, view, readout);
 
     // run a single-model test if desired (exits from here if test is run)
@@ -66,4 +69,8 @@
     }
  
+    // display the backsub and backgnd images
+    psphotVisualShowPeaks (config, view, detections);
+    psphotVisualShowFootprints (config, view, detections);
+
     // XXX test write out the footprint image
     if (0) {
@@ -71,11 +78,4 @@
 	psphotSaveImage (NULL, footprintImage, "footprints.1.fits");
 	psFree (footprintImage);
-    }
-
-    // XXX test write out the footprint image
-    if (0) {
-        psImage *footprintImage = pmSetFootprintArrayIDs (detections->footprints, true);
-        psphotSaveImage (NULL, footprintImage, "footprints.1.fits");
-        psFree (footprintImage);
     }
 
@@ -87,4 +87,6 @@
     }
 
+    psphotVisualShowMoments (config, view, sources);
+
     // find blended neighbors of very saturated stars
     // XXX merge this with Basic Deblend?
@@ -105,4 +107,6 @@
         return psphotReadoutCleanup(config, readout, recipe, detections, psf, sources);
     }
+
+    psphotVisualShowRoughClass (config, view, sources);
 
     // if we were not supplied a PSF, choose one here
@@ -122,4 +126,6 @@
     }
 
+    psphotVisualShowPSFModel (config, readout, psf);
+
     // Define source fitting parameters for everything that follows PSF fits
     // This allows different parameters to be used from the PSF fitting
@@ -161,4 +167,12 @@
     psphotFitSourcesLinear (readout, sources, recipe, psf, FALSE);
 
+    // XXX we have to place this here because the models are not realized until psphotGuessModels
+    // or fitted until psphotFitSourcesLinear.  There is an example of generating a residual image 
+    // in pmPSFtry.c
+
+    psphotVisualShowPSFStars (config, view, psf, sources);
+    psphotVisualShowSatStars (config, view, psf, sources);
+    psphotVisualShowLinearFit (config, readout);
+
     if (0) {
         FILE *out = fopen ("out.pass1.dat", "w");
@@ -187,6 +201,10 @@
     }
 
+    // XXX psphotVisualShowSourceSize (config, view, sources);
+
     // non-linear PSF and EXT fit to brighter sources
     psphotBlendFit (readout, sources, recipe, psf);
+
+    // XXX psphotVisualShowNonLinearFit (config, view, sources);
 
     // replace all sources
