Added support for saving chart as PNG file