fix  bug: image access failed