Yes, in designer we can represent the process in the drawing canvas as SVG so designer uses apache batik to convert this SVG representation of your process to a png image.
Right now however you have to make the call from designer itself because it uses it's JS API to get to the SVG representation. I'll see what can be done and update this post soon.