draw line and ellipse