Added is closed param to draw lines