Webcam takes shot on key press.

Also added some guards against opening webcam when there is none