Hello
I have imported an image as a grey scale image and then resized it using Keras package in R, but when I plotted it using image() function in R, I am getting below plot.

R Code:
image1_resize=image_load("Cat.jpg",grayscale=TRUE,target_size = c(100,110))
resize_array1=image_to_array(image1_resize)
image(matrix(resize_array1),col=grey.colors(255))
In python I have red the image as grey scale using cv2 library and when I plot, getting desired result as below
Any specific reason for this?