Got the FITS header writeout working!