def draw_arrow(image, p, q, color, arrow_magnitude=9, thickness=1, line_type=8, shift=0):

    # draw arrow tail
    cv2.line(image, p, q, color, thickness, line_type, shift)