Limit resolution check to image files