Fixed c++ versus java issue
Working out proper grayscale levels