Added mode to the border transformation. Closes #149

The border transformation now supports a `mode` parameter that can be used to either paint the border outside of the image ("outbound" (default behaviour)), or inside of the image ("inline").