Fix for color-filter: add thresholding before returning.