I assume this error checking is only done for FITS files, not PNG (since there's no WCS information there).