Refactor Scene graph object, keep the Scene graph class simple, and split the rendering code to rendering class or renderer.