Implemented writing plate header to FITS file