upload_pic and download_pic apis