check damaged image file identity