Index: branches/eam_branches/ipp-20101205/psphot/src/psphotBlendFit.c
===================================================================
--- branches/eam_branches/ipp-20101205/psphot/src/psphotBlendFit.c	(revision 30165)
+++ branches/eam_branches/ipp-20101205/psphot/src/psphotBlendFit.c	(revision 30166)
@@ -187,5 +187,6 @@
     psLogMsg ("psphot.psphotBlendFit", PS_LOG_INFO, "fit models: %f sec for %d objects (%d psf, %d ext, %d failed, %ld skipped)\n", psTimerMark ("psphot.fit.nonlinear"), Nfit, Npsf, Next, Nfail, sources->n - Nfit);
 
-    psphotVisualShowResidualImage (readout);
+    psphotVisualShowResidualImage (readout, false);
+    psphotVisualShowObjectRegions (readout, recipe, sources);
     psphotVisualShowFlags (sources);
 
Index: branches/eam_branches/ipp-20101205/psphot/src/psphotExtendedSourceAnalysis.c
===================================================================
--- branches/eam_branches/ipp-20101205/psphot/src/psphotExtendedSourceAnalysis.c	(revision 30165)
+++ branches/eam_branches/ipp-20101205/psphot/src/psphotExtendedSourceAnalysis.c	(revision 30166)
@@ -133,5 +133,5 @@
 	radius = PS_MAX (radius, source->pixels->numRows - source->peak->yf + source->pixels->row0);
 	radius = PS_MAX (radius, source->pixels->numCols - source->peak->xf + source->pixels->col0);
-	pmSourceRedefinePixels (source, readout, source->peak->xf, source->peak->yf, 1.5*radius, false);
+	pmSourceRedefinePixels (source, readout, source->peak->xf, source->peak->yf, 1.5*radius);
 
 	// if we request any of these measurements, we require the radial profile
@@ -173,5 +173,5 @@
     psLogMsg ("psphot", PS_LOG_INFO, "  %d kron\n", Nkron);
 
-    psphotVisualShowResidualImage (readout);
+    psphotVisualShowResidualImage (readout, false);
 
     if (doPetrosian) {
Index: branches/eam_branches/ipp-20101205/psphot/src/psphotExtendedSourceAnalysisByObject.c
===================================================================
--- branches/eam_branches/ipp-20101205/psphot/src/psphotExtendedSourceAnalysisByObject.c	(revision 30165)
+++ branches/eam_branches/ipp-20101205/psphot/src/psphotExtendedSourceAnalysisByObject.c	(revision 30166)
@@ -114,5 +114,5 @@
 	    radius = PS_MAX (radius, source->pixels->numRows - source->peak->yf + source->pixels->row0);
 	    radius = PS_MAX (radius, source->pixels->numCols - source->peak->xf + source->pixels->col0);
-	    pmSourceRedefinePixels (source, readout, source->peak->xf, source->peak->yf, 1.5*radius, false);
+	    pmSourceRedefinePixels (source, readout, source->peak->xf, source->peak->yf, 1.5*radius);
 
 	    // if we request any of these measurements, we require the radial profile
Index: branches/eam_branches/ipp-20101205/psphot/src/psphotRadialApertures.c
===================================================================
--- branches/eam_branches/ipp-20101205/psphot/src/psphotRadialApertures.c	(revision 30165)
+++ branches/eam_branches/ipp-20101205/psphot/src/psphotRadialApertures.c	(revision 30166)
@@ -119,5 +119,5 @@
 	radius = PS_MAX (radius, source->pixels->numRows - source->peak->yf + source->pixels->row0);
 	radius = PS_MAX (radius, source->pixels->numCols - source->peak->xf + source->pixels->col0);
-	pmSourceRedefinePixels (source, readout, source->peak->xf, source->peak->yf, 1.5*radius, false);
+	pmSourceRedefinePixels (source, readout, source->peak->xf, source->peak->yf, 1.5*radius);
 
 	if (!psphotRadialApertureSource (source, recipe, skynoise, maskVal, radMax, 0)) {
@@ -142,5 +142,5 @@
 	radialAperSet = source->parent->radialAper;
     }
-
+    psAssert(radialAperSet, "this should be defined before calling");
     psAssert(radialAperSet->data[entry] == NULL, "why is this already defined?");
 
Index: branches/eam_branches/ipp-20101205/psphot/src/psphotRadiusChecks.c
===================================================================
--- branches/eam_branches/ipp-20101205/psphot/src/psphotRadiusChecks.c	(revision 30165)
+++ branches/eam_branches/ipp-20101205/psphot/src/psphotRadiusChecks.c	(revision 30166)
@@ -77,5 +77,5 @@
     source->apRadius = PSF_APERTURE;
 
-    bool status = pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->fitRadius, false);
+    bool status = pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->fitRadius);
 
     // set the mask to flag the excluded pixels
@@ -115,5 +115,5 @@
     source->apRadius = PSF_APERTURE;
 
-    bool status = pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->fitRadius, false);
+    bool status = pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->fitRadius);
 
     // set the mask to flag the excluded pixels
@@ -172,5 +172,5 @@
 
     // redefine the pixels if needed
-    pmSourceRedefinePixels (source, readout, peak->xf, peak->yf, rawRadius, false);
+    pmSourceRedefinePixels (source, readout, peak->xf, peak->yf, rawRadius);
 
     // set the mask to flag the excluded pixels
@@ -199,5 +199,5 @@
 
     // redefine the pixels if needed
-    pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->fitRadius, false);
+    pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->fitRadius);
 
     // set the mask to flag the excluded pixels
Index: branches/eam_branches/ipp-20101205/psphot/src/psphotSourceFits.c
===================================================================
--- branches/eam_branches/ipp-20101205/psphot/src/psphotSourceFits.c	(revision 30165)
+++ branches/eam_branches/ipp-20101205/psphot/src/psphotSourceFits.c	(revision 30166)
@@ -365,5 +365,5 @@
 
     // copy most data from the primary source (modelEXT, blends stay NULL)
-    pmSource *newSrc = pmSourceCopyData (source);
+    pmSource *newSrc = pmSourceCopy (source);
     newSrc->modelPSF = psMemIncrRefCounter (DBL->data[1]);
 
@@ -385,5 +385,5 @@
 	    psLogMsg ("psphot", 1, "PAR %d : %f +/- %f\n", i, source->modelPSF->params->data.F32[i], source->modelPSF->dparams->data.F32[i]);
 	}
-	psphotVisualShowResidualImage (readout);
+	psphotVisualShowResidualImage (readout, false);
     }
 # endif
