fix the image cache issue