Fixes image format