upload_picture functionalities