cleaned up ImageManager class