Fix: get_contenttype works when empty string is given as contentType. Empty string is default for contentType in NamedFile, not None
Validate image field : check if content is actually an image using mimetype.