Refactored the brush control code out of main window, into the brush selection widget which is now the brush manager