you will need to convert the SVG files into PNG
https://gist.github.com/1333906You will then need to build a function that will build a function that will shrink and hide the div from its full size to 20X20 when requested by the user, and grow it again when the user generates another chart to image otherwise the div may cover the SVG and the user would loose all interactivity.
Alternately you can use the toImg function of that code. This wont display the chart as a PNG but allows you to download the image as a very very cryptic file name