pub fn detect_image_type( file: &File, overlapped_mode: bool, ) -> Result<ImageType>
Detect the type of an image file by checking for a valid header of the supported formats.