refine image cache