#260 fix PDF export functionality with images in header/footer