Adding intelligent color mode (take 2)

This time, it should be working ! ^.^