ADD: reduce color depth to 8 bit function