Add arrow heads on the end

We note which direction in which the node is rendering ie. left or
right. We use this information while rendering the arrow heads, their
offset from the center of the node and their direction too.