Lasso selections: minor bugfixes and improvements

- Added support for various key modifiers (arrow keys, delete, esc)
- Fixed memory leak when performing "is point inside selection" checks
- Allowed for removing selection by dragging it off the image
- Fixed potential bounds-checking error when left/top coordinates lie
off the image