Don't use image? for file type check