This program captures images from the camera and sets them in a window