Here is an example on codepen using getUserMedia to capture a still image.
http://codepen.io/soggybag/pen/pjNNLL
NOTE! This example will not work locally! It will NOT work on Safari at the current time. Check can I use for compatibility: http://caniuse.com/#feat=stream