Index: trunk/ppImage/src/ppImageLoop.c
===================================================================
--- trunk/ppImage/src/ppImageLoop.c	(revision 20419)
+++ trunk/ppImage/src/ppImageLoop.c	(revision 20444)
@@ -129,7 +129,7 @@
 
         // replace the masked pixels with the background level
-        if (options->replaceMasked) {
-            if (!ppImageReplaceBackground(config, view, options)) {
-                ESCAPE("Unable to replace masked pixels with background level");
+        if (options->doBG) {
+            if (!ppImageSubtractBackground(config, view, options)) {
+                ESCAPE("Unable to subtract background");
             }
         }
