Protection against non image formats.