initialized processFile method of TextCompiler class and cleaned up ImageManager class