Index: trunk/ppStack/src/ppStackMatch.c
===================================================================
--- trunk/ppStack/src/ppStackMatch.c	(revision 15368)
+++ trunk/ppStack/src/ppStackMatch.c	(revision 15428)
@@ -69,4 +69,11 @@
                                                sources, target, powf(10.0, -0.4 * maxMag));
 
+#ifdef TESTING
+    {
+        psFits *fits = psFitsOpen("fake.fits", "w");
+        psFitsWriteImage(fits, NULL, fake->image, 0, NULL);
+        psFitsClose(fits);
+    }
+#endif
 
     // Do the image matching
