make Image and CacheManager not depend on Flask