Parse image id.