On the Duality Between Retinex and Image Dehazing