Transforms a Raphael.js svg object into an image to save.