I found an answer somewhere in this forum, to solve it firstly add fastbook
to pip install
and then rewrite search_images
as:
from fastbook import search_images_ddg
def search_images(term, max_images=30):
print(f"Searching for '{term}'")
return search_images_ddg(term, max_images=max_images)