Cropping rectangle is now restrained to window

You can still make invalid rectangles, though.