added AddLines mode of drawing