Selection tool tweaks & fixes

The tool is now almost done. There's only one feature left that needs to be done - magic wand tool. I'll start working on it soon.