detect image file and zip file