Move moduleContainer to a separate function as it will be removed
We don't die unless we're dead ;)
Send PDF BEFORE we take care of custom headers
Mess with PDF generation code

* Works more or less
* Rewrite image tags on the fly
* Sample header image (still ugly)
* Trying hard to find a way for CORRECT page footers and line numbers