saving webcam image to server