upload the picture to server