fix null image id

fix null image id