Implemented webcam to canvas functionality.