added break to switch blocks
remove unused color converters
simplified switch statements in pickBrightness