Added switch to convert between RGB and HSB