slc-base: extract image id