improve image cache use