refactor of actual pdf generation
a little cleanup in the tests
rearrange of content related classes
first attempt to include images (jpg)