Refactored color temperature calculation code to be a function definition of process image instead of it's own class