Svg rasterize (rebased)

This is a rebased version of #1185.  It also updates some test images and adds `get_image_magnification` to the `RendererBase` class at @pelson's suggestion.