Index: /branches/pap_branch_080320/ppMerge/src/ppMergeMask.c
===================================================================
--- /branches/pap_branch_080320/ppMerge/src/ppMergeMask.c	(revision 17174)
+++ /branches/pap_branch_080320/ppMerge/src/ppMergeMask.c	(revision 17175)
@@ -226,5 +226,5 @@
             pmCell *countsCell = pmFPAfileThisCell(config->files, view, "PPMERGE.OUTPUT.COUNT");
             pmReadout *countsRO = pmReadoutAlloc(countsCell); // Readout with count of inputs per pixel
-            countsRO->image = psImageAlloc(outRO->image->numCols, outRO->image->numRows, PS_TYPE_F32);
+            countsRO->image = psImageAlloc(outRO->mask->numCols, outRO->mask->numRows, PS_TYPE_F32);
             psImageInit(countsRO->image, numFiles);
             countsRO->data_exists = countsCell->data_exists = countsCell->parent->data_exists = true;
