Improvements on resizing ROIs. It's still not smooth, but it can no longer go outside the window, and doesn't seem to be able to create non-rectangular shapes anymore.