Fixed readimfits to use astropy.