implements draw a line
thinking in bezier draw line