fixed clipping of legend in png