fixed warning in image cache