Read image as grayscale instead of converting it to grayscale after it was read.