Image histogram remapping