now using rgb colorspace.