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.
----
User benefit is performance unpacking images.
Unpacking images will be possible without having to load the packed images into memory to get their type.
See {D9500}.