support tight_bbox for pgf output, fixes #2342
Merge pull request #2391 from pwuertz/fix_2342

 support tight_bbox for pgf output, fixes #2342