A color preserving tone mapping framework in the intrinsic domain