slightly refactored image building
added printing tracks to pdf