You left out the “at runtime” which changes EVERYTHING. I’ve never worked with APIs so, I guess that mistake is on me.
I’m not watching that video to learn what you did. So, the best I can do is brainstorm with you, unless someone else knows exactly how to do what you want.
You’ll need a container class that can be populated with the desired objects (in your case, images).
This may help you:
This also may help. Or it will not, but I hope the former: