Index: trunk/Ohana/src/opihi/cmd.astro/imfit.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/imfit.c	(revision 7917)
+++ trunk/Ohana/src/opihi/cmd.astro/imfit.c	(revision 9275)
@@ -138,13 +138,7 @@
     free (out[0].header.buffer);
     free (out[0].matrix.buffer);
+
     strcpy (out[0].file, "(empty)");
-    out[0].header.bitpix = -32;
-    out[0].header.bscale = 1.0;
-    out[0].header.bzero  = 0.0;
-    out[0].header.unsign = FALSE;
-    out[0].header.Naxes = 2;
-    out[0].header.Naxis[0] = 2*nx;
-    out[0].header.Naxis[1] = 2*ny;
-    CreateBuffer (out);
+    CreateBuffer (out, 2*nx, 2*ny, -32, 0.0, 1.0);
 
     /* four panels: 1) raw image. 2) fit  3) raw - fit   4) ?? */
