generate the image path for the json