refactor-> create image manager