Index: trunk/psphot/src/psphotFindPeaks.c
===================================================================
--- trunk/psphot/src/psphotFindPeaks.c	(revision 9270)
+++ trunk/psphot/src/psphotFindPeaks.c	(revision 9834)
@@ -29,6 +29,8 @@
 
     // XXX make this a user-option?
-    // psphotSaveImage (NULL, smooth_im, "imsmooth.fits");
-    // psphotSaveImage (NULL, smooth_wt, "wtsmooth.fits");
+    if (psTraceGetLevel("psphot") > 5) {
+	psphotSaveImage (NULL, smooth_im, "imsmooth.fits");
+	psphotSaveImage (NULL, smooth_wt, "wtsmooth.fits");
+    }
 
     psTimerStart ("psphot");
