Update number of maxDifferent pixels