Fix: Handle KeyError if image_id of json can't be retrieved