Add functionality to take a picture

All i did was add some stuff from the mozilla docs on using the webcam : https://developer.mozilla.org/en-US/docs/WebRTC/Taking_webcam_photos