Refactored box selection to use rectangular ROIs more directly. This
(hopefully) fixes SCI-1659, SCI-1683, SCI-1761 and DAWNSCI-783