Generalizing the border drawing

So that I can use it in the path view as well.