switch to json consumption
no need to url encode images now