Added separate error when image format is known