Function: image-type-from-data

Determine the image type from image data DATA.
Value is a symbol specifying the image type or nil if type cannot
be determined.