Adding c-code for capturing image from webcam