[TS().write()] fix many bugs in img writing
[class_parser_demo] update w/ new api
Merge branch 'oop' into traitcapture_v0

Pull in some bugfixes & update demo code