upload base64 image to server