only use image caching if enabled