adding image to cache object