fix null image bug