ColorDetector.cpp cleanup