Update ImageContrast.java

math bug fixed.