adding delegate hooks to setBrightness and setOpacity