Rewriting imaging class. Locating COM insertion point. Fixing bug in old script.