Added preview color and invert colors function