Index: trunk/ppImage/src/ppImage.h
===================================================================
--- trunk/ppImage/src/ppImage.h	(revision 20419)
+++ trunk/ppImage/src/ppImage.h	(revision 20444)
@@ -35,8 +35,8 @@
     bool doFringe;                      // Fringe subtraction
     bool doPhotom;                      // Source identification and photometry
+    bool doBG;                          // Background subtraction
     bool doAstromChip;                  // per-chip Astrometry
     bool doAstromMosaic;                // full-mosaic Astrometry
     bool doStats;                       // call ppStats on the image
-    bool replaceMasked;                 // fill in masked values with background model
 
     // output files requested
@@ -134,5 +134,4 @@
 
 bool ppImageRebinChip (pmConfig *config, pmFPAview *view, ppImageOptions *options, char *outName);
-bool ppImageRebinReadout (pmReadout *output, pmReadout *input, pmFPAfile *outFile, ppImageOptions *options);
 
 bool ppImagePhotom (pmConfig *config, pmFPAview *view);
@@ -140,5 +139,10 @@
 bool ppImageAddstar (pmConfig *config);
 
-bool ppImageReplaceBackground (pmConfig *config, pmFPAview *view, ppImageOptions *options);
+// Subtract background from the chip-mosaicked image
+bool ppImageSubtractBackground(
+    pmConfig *config,                   // Configuration
+    const pmFPAview *view,              // View to chip of interest
+    const ppImageOptions *options       // Processing options
+    );
 
 bool ppImageMosaicChip (pmConfig *config, const ppImageOptions *options, const pmFPAview *view,
