Select best images results from Bing

I’ve created an piece of software to automate the flashcard creation for me. I integrated TTS audios with Azure, definitions and examples phrases using WiktionaryParser and images using Bing API, but just searching the unknown word in Bing doesn’t bring the best results, because sometimes the acquired image doesn’t have anything related to the unknow word itself. I can’t figure out how to get just images related to the word the I’m creating the flashcard.

Any help appreciated: github/warleysr/anki-vac

I suspect there is no easy way to handle this. You may need to get fancy and look into machine learning models or something like that to get the best outcome.