Fixed issue with image cache