Implemented uploading images from UI.