Improved webcam demo