Image histogram mapping