add image ids.