Extend the usage of the js plugin for seamless canvas capture from jquery.flot.saveAsImage.js.