image upload: error if not an image file and cucumber tests