Refactored JSON parsing function for image API.
Refactored JSON parsing function for image API.

- Fixes issue with only getting info from one source
- Is much more readable thanks to threaded "->>" form
talexand/kittens-gallery