modified videowidget to work with cv2