A crappy implementation of intelligent scissors/livewire