refactoring to ImageManips class