cached the image data for later using