For the Dog CEO API, decide whether the interface needs one image or a collection. The random-image documentation distinguishes those requests and caps a multiple-image response at 50.
Normalize the response deliberately before rendering. Let a failed image load show a useful fallback without discarding the other results; receiving a URL and displaying its image are separate steps.