Temporary fix to the nasty IMAGE_FORMAT_PNG error.