Fixed a bug in the code which converts an Image to a FITS instance.