replaced 'polylines' with 'lines' function from cv2