Refactor
Add adaptive color scaling