Switch from BSP tree indexing on QGraphicsScene to remove crashes. Improve tool deletion