Fix situation where image_id is returned as string and not int