Export a chart as an image