Handle html and image uploads