Fix node drawing

so that the center node is drawn with the center color

Also simplify the code somewhat