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