Index: trunk/psLib/src/fits/psFitsImage.c
===================================================================
--- trunk/psLib/src/fits/psFitsImage.c	(revision 36529)
+++ trunk/psLib/src/fits/psFitsImage.c	(revision 36537)
@@ -753,4 +753,14 @@
     }	
 
+    // If there is no options set, remove all our non-standard keywords, because no one asked for them.
+    if (!options) {
+      if (psMetadataLookup(header,"BOFFSET")) {
+	psMetadataRemoveKey(header,"BOFFSET");
+      }
+      if (psMetadataLookup(header,"BSOFTEN")) {
+	psMetadataRemoveKey(header,"BSOFTEN");
+      }
+    }      
+    
     // write the header, if any.
     if (header && !psFitsWriteHeaderImage(fits, header, createPHU)) {
