Add user-defined settings to control brightness threshold and flags
Refactor hex to rgb conversion in case of alpha values