Index: /trunk/pois/src/pois.c
===================================================================
--- /trunk/pois/src/pois.c	(revision 6771)
+++ /trunk/pois/src/pois.c	(revision 6772)
@@ -65,5 +65,5 @@
         header = psFitsReadHeader(NULL, reference);
     }
-    psImage *refImage = psFitsReadImage(NULL, reference, imageRegion, 0);
+    psImage *refImage = psFitsReadImage(reference, imageRegion, 0);
     if (refImage == NULL) {
         psErrorStackPrint(stderr, "Fatal error: unable to read %s\n", config->refFile);
@@ -84,5 +84,5 @@
         header = psFitsReadHeader(NULL, input);
     }
-    psImage *inImage = psFitsReadImage(NULL, input, imageRegion, 0);
+    psImage *inImage = psFitsReadImage(input, imageRegion, 0);
     if (inImage == NULL) {
         psErrorStackPrint(stderr, "Fatal error: unable to read %s\n", config->inFile);
@@ -128,5 +128,5 @@
     // Write the mask out
     psFits *maskFile = psFitsOpen("mask.fits", "w");
-    if (!psFitsWriteImage(maskFile, NULL, mask, 0)) {
+    if (!psFitsWriteImage(maskFile, NULL, mask, 0, NULL)) {
         psErrorStackPrint(stderr, "Unable to write mask: mask.fits\n");
     }
@@ -196,5 +196,5 @@
         psImage *kernelImage = poisExtractKernel(solution, kernelBasisFunctions, 0.0, 0.0, config);
         psFits *kernelFile = psFitsOpen(kernelName, "w");
-        if (!psFitsWriteImage(kernelFile, NULL, kernelImage, 0)) {
+        if (!psFitsWriteImage(kernelFile, NULL, kernelImage, 0, NULL)) {
             psErrorStackPrint(stderr, "Unable to write kernel: %s\n", kernelName);
         }
@@ -242,5 +242,5 @@
     snprintf(convName, MAXCHAR, "%s.conv", config->outFile);
     psFits *convFile = psFitsOpen(convName, "w");
-    if (!psFitsWriteImage(convFile, NULL, convImage, 0)) {
+    if (!psFitsWriteImage(convFile, NULL, convImage, 0, NULL)) {
         psErrorStackPrint(stderr, "Unable to write convolved image: %s\n", convName);
     }
@@ -304,5 +304,5 @@
         sprintf(maskName, "%s.mask", config->outFile);
         psFits *maskFile = psFitsOpen(maskName, "w");
-        if (!psFitsWriteImage(maskFile, NULL, mask, 0)) {
+        if (!psFitsWriteImage(maskFile, NULL, mask, 0, NULL)) {
             psErrorStackPrint(stderr, "Unable to write image: %s\n", maskName);
         }
@@ -318,5 +318,5 @@
 
     psFits *subFile = psFitsOpen(config->outFile, "w");
-    if (!psFitsWriteImage(subFile, header, subImage, 0)) {
+    if (!psFitsWriteImage(subFile, header, subImage, 0, NULL)) {
         psErrorStackPrint(stderr, "Unable to write subtracted image: %s\n", config->outFile);
     }
Index: /trunk/pois/src/poisCalculateDeviations.c
===================================================================
--- /trunk/pois/src/poisCalculateDeviations.c	(revision 6771)
+++ /trunk/pois/src/poisCalculateDeviations.c	(revision 6772)
@@ -79,5 +79,5 @@
             snprintf(stampName, MAXCHAR, "stamp%d.fits", s);
             psFits *stampFile = psFitsOpen(stampName, "w");
-            if (!psFitsWriteImage(stampFile, NULL, subStampTrim, 0)) {
+            if (!psFitsWriteImage(stampFile, NULL, subStampTrim, 0, NULL)) {
                 psErrorStackPrint(stderr, "Unable to write stamp: %s\n", stampName);
             }
