fix for #7628 undo does not work ok

adding a removePoint method, which can also take a negative index to start
removing vertices from the end.
actual fix for #7628 was to not remove the last node, but the one before that.
Merge pull request #544 from rduivenvoorde/rubberband#7628

fix #7628