Merge pull request from sebam2k4/GH-127_check-mime-type-for-image-upload GH-127: add mime type check for image upload