Implements image upload.