clear canvas before rendering subsequent tree