adding an image_cache to hold the image even when the page is refreshed