WIP: emits image, refactoring, STA and DCW support