added sampling rate for color reduction