So it looks like this results in `1 + numer_of_images` requests.

Is it possible to optimize this to only do 2 requests (get image ids, get images for all the provided ids)?