The image id is written into the tag file with quotes on it, so be sure to strip it off when composing the tags json