updated to cache image and chart objects