added webcam functionality