added option to inverted color mapping