add beginPath call to drawLine