Port image_id to libmirage 3.0 API