need to apply-templates to param:footer so that images in footers work