fetching images as JSON instead of XML

One thing I didn't like about my change was the fact that when I get each component from the JSON, it returned the numbers as INT instead of STR which was the case when we were using XML