Added XYZ functionality and tested with lower color bound of white and upper of red.