Remove svg element before redraw