Functionality for uploading picture with UI