draw line with 2 points instead of array