PNG and JPG formats: unsupported image type