Index: /trunk/psphot/src/psphotMakeResiduals.c
===================================================================
--- /trunk/psphot/src/psphotMakeResiduals.c	(revision 13195)
+++ /trunk/psphot/src/psphotMakeResiduals.c	(revision 13196)
@@ -266,9 +266,11 @@
     psFree (fluxClipDef);
 
-    psphotSaveImage (NULL, resid->Ro,     "resid.ro.fits");
-    psphotSaveImage (NULL, resid->Rx,     "resid.rx.fits");
-    psphotSaveImage (NULL, resid->Ry,     "resid.ry.fits");
-    psphotSaveImage (NULL, resid->weight, "resid.wt.fits");
-    psphotSaveImage (NULL, resid->mask,   "resid.mk.fits");
+    if (psTraceGetLevel("psphot") > 5) {
+      psphotSaveImage (NULL, resid->Ro,     "resid.ro.fits");
+      psphotSaveImage (NULL, resid->Rx,     "resid.rx.fits");
+      psphotSaveImage (NULL, resid->Ry,     "resid.ry.fits");
+      psphotSaveImage (NULL, resid->weight, "resid.wt.fits");
+      psphotSaveImage (NULL, resid->mask,   "resid.mk.fits");
+    }
 
     psf->residuals = resid;
