pub fn image_type(header: &[u8]) -> ImageResult<ImageType>
Get the image type from a header
header
This will check the header to determine what image type the data is.