Don't allow brightness greater than maxBrightness