Fixed bug in ReadImage which loses track of fts vs fits file extension.