simpler branch
better input image and better border growing math
cleanup dead code