Add `IMB_ispic_type_from_memory` so we can detect the format of a packed file.
This removes `is_a_filepath` callback and uses a magic check for photoshop files
that's compatible with OIIO.
This means we can know the file format without having the file on-disk (packed files) for e.g.
Even though OIIO doesn't support packed images, this doesn't have to prevent us from being able to check the file-type of in-memory data.
----
Added this for {D9500}.