Capture image using javascript webcam and upload it to your server