Change sanitization for images to upload type.