Based on rendersvg. Provides callback mechanism for when the rendering is complete.