add functionality to capture a frame of video