Color correction algorithms for digital cameras