implemented the colormapper and intensityblock