updated svg renderer to properly remove children