added color mapping support based on parameters