add feature to turn off image caching