Drawing of changed lines looks a lot nicer now, no flashing. Needs a bit of refactoring.
Don't know why this ever changed.
Jenks clustering