correct check file as image type