As happens quite frequently in our field, the helpful Keras function load_img has been moved.
We make use of this function in several of my courses, including:
Deep Learning: Advanced Computer Vision (GANs, SSD, +More!)
Old way (no longer works):
New way (works):