Adding support for image files with a different header