Index: trunk/psphot/src/psphotFindPeaks.c
===================================================================
--- trunk/psphot/src/psphotFindPeaks.c	(revision 12372)
+++ trunk/psphot/src/psphotFindPeaks.c	(revision 12689)
@@ -39,6 +39,9 @@
     // optionally save example images under trace 
     if (psTraceGetLevel("psphot") > 5) {
-	psphotSaveImage (NULL, smooth_im, "imsmooth.fits");
-	psphotSaveImage (NULL, smooth_wt, "wtsmooth.fits");
+	char name[64];
+	sprintf (name, "imsmooth.v%d.fits", pass);
+	psphotSaveImage (NULL, smooth_im, name);
+	sprintf (name, "wtsmooth.v%d.fits", pass);
+	psphotSaveImage (NULL, smooth_wt, name);
     }
 
@@ -58,5 +61,7 @@
     // optionally save example images under trace 
     if (psTraceGetLevel("psphot") > 5) {
-	psphotSaveImage (NULL, smooth_im, "snsmooth.fits");
+	char name[64];
+	sprintf (name, "snsmooth.v%d.fits", pass);
+	psphotSaveImage (NULL, smooth_im, name);
     }
 
