Redirect to generated image file instead use php function for opening fi...

It resolves pyrocms performance issue.