Index: /trunk/ppImage/src/ppImageParseCamera.c
===================================================================
--- /trunk/ppImage/src/ppImageParseCamera.c	(revision 12819)
+++ /trunk/ppImage/src/ppImageParseCamera.c	(revision 12820)
@@ -160,4 +160,5 @@
         return NULL;
     }
+    // XXX should these be bound explicitly to the output->fpa rather than the input->fpa?
     pmFPAfile *byChip = pmFPAfileDefineChipMosaic(config, input->fpa, "PPIMAGE.OUTPUT.CHIP");
     if (!byChip) {
@@ -180,8 +181,12 @@
 
     // For photometry, we operate on the chip-mosaicked image
+    // we create a copy of the mosaicked image for psphot so we can write out a clean image
     if (options->doPhotom) {
-	pmFPAfile *psphotInput = pmFPAfileDefineInput (config, byChip->fpa, "PSPHOT.INPUT");
+	pmFPAfile *psphotInput = pmFPAfileDefineFromFPA (config, byChip->fpa, 1, 1, "PSPHOT.INPUT");
 	PS_ASSERT (psphotInput, false);
-	psphotInput->mode = PM_FPA_MODE_REFERENCE;
+
+	// this file is just used as a carrier; 
+	// actual output files (eg, PSPHOT.RESID) are defined below
+	psphotInput->save = false; 
 
 	// define associated psphot input/output files
