Capturing an image is really simple as you can see from the simple JavaScript that does it here.