add methods for accessing ImageCache and setting max cache size