Changes RGB image to grayscale
rgb2grayscale(img)
img
A 3D array with slices R, G, and B
img as a 3D array as grayscale