add a capture function to take screenshot from the webcam in a canvas