Fix mean subtraction for color images