Refactored brushes dialog class