Better handling of unsupported image formats.