Assert image is a file