Made a template object reusable after calling render()