change img to grayscale before classifying