AttributeError: 'numpy.ndarray' object has no attribute 'img_to_array'
You are using the variable name image in your code, while you also import a module named image. This conflict results in trying to find img_to_array method in the variable rather than in the module.

Use a different name for you image variable, or directly import the img_to_array function:

from keras.preprocessing.image import img_to_array
[...]
x = img_to_array(img1)