I am using following code to load images for input in to keras-theano models.
def load_to_img(path_to_img): image=k.preprocessing.image.load_img(path_to_img)