support tight_bbox for pgf output, fixes #2342 (v1.3.x)

Fixing issue #2342 in the 1.3.x branch as well.