Neutral beam driven impurity flow reversal in tokamaks