Index: trunk/ppImage/src/ppImageLoop.c
===================================================================
--- trunk/ppImage/src/ppImageLoop.c	(revision 21183)
+++ trunk/ppImage/src/ppImageLoop.c	(revision 22734)
@@ -28,5 +28,5 @@
     if (dump_file) {
         pmConfigCamerasCull(config, NULL);
-        pmConfigRecipesCull(config, "PPIMAGE,PPSTATS,PSPHOT,MASKS,PSASTRO");
+        pmConfigRecipesCull(config, "PPIMAGE,PPSTATS,PSPHOT,MASKS,PSASTRO,JPEG");
 
         pmConfigDump(config, input->fpa, dump_file);
@@ -96,8 +96,8 @@
                 }
 
-		// free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT
-		if (!ppImageDetrendFree (config, view)) {
-		    ESCAPE("Unable to free detrend images");
-		}
+                // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT
+                if (!ppImageDetrendFree (config, view)) {
+                    ESCAPE("Unable to free detrend images");
+                }
             }
 
@@ -105,13 +105,13 @@
                 ppImageDetrendRecord(cell, config, options, view);
             }
-	    // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT
-	    if (!ppImageDetrendFree (config, view)) {
-		ESCAPE("Unable to free detrend images");
-	    }
-        }
-	// free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT
-	if (!ppImageDetrendFree (config, view)) {
-	    ESCAPE("Unable to free detrend images");
-	}
+            // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT
+            if (!ppImageDetrendFree (config, view)) {
+                ESCAPE("Unable to free detrend images");
+            }
+        }
+        // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT
+        if (!ppImageDetrendFree (config, view)) {
+            ESCAPE("Unable to free detrend images");
+        }
 
         // Apply the fringe correction
@@ -121,8 +121,8 @@
             }
         }
-	// free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT
-	if (!ppImageFringeFree (config, view)) {
-	    ESCAPE("Unable to free fringe images");
-	}
+        // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT
+        if (!ppImageFringeFree (config, view)) {
+            ESCAPE("Unable to free fringe images");
+        }
 
         // measure various pixel-based statistics for this image
@@ -152,15 +152,15 @@
         }
 
-	// these may be used by ppImageSubtractBackground.
-	// if these are defined as internal files, drop them here
-	status = true;
-	status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL");
-	status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL.STDEV");
-	status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND");
-	if (!status) {
-	    psError(PSPHOT_ERR_PROG, false, "trouble dropping internal files");
-	    psFree (view);
-	    return false;
-	}
+        // these may be used by ppImageSubtractBackground.
+        // if these are defined as internal files, drop them here
+        status = true;
+        status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL");
+        status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL.STDEV");
+        status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND");
+        if (!status) {
+            psError(PSPHOT_ERR_PROG, false, "trouble dropping internal files");
+            psFree (view);
+            return false;
+        }
 
         // binning (used for display) must take place after the background is replaced, if desired
