Cache the contents of the image path.