improved colorpicker sample