Thus, the application program never sees the original FITS table and only sees the image in the new temporary file (which has no additional extensions).
The application program must be expecting to open a FITS image and not a FITS table in this case.