render node shape according to node type