Fix empty image issue