Some modification to show images from webcam