added disabling ability ti imagemanips and did few refactorings