You should pass x and y coordinates to plot, e.g.,
x = range(0,1000,length=size(img,1))
y = range(0,1000,length=size(img,2))
plot(x,y,img)
You should pass x and y coordinates to plot, e.g.,
x = range(0,1000,length=size(img,1))
y = range(0,1000,length=size(img,2))
plot(x,y,img)