added ability to fetch json for images