Creating image JSON