This revision introduces the writer class and a first attempt to integrate it into image production. Not yet functional.