Updated node drawing functions for hierarchical rendering.