Rewrite most of the imaging scripts
27 files changed