bugfixes for cv2.polylines and cv2.movewindow errors