Added the code for reading from webcam