Filemanager refactoring, Imagecontroller refactoring