Added mime type checking for vaid image uploads