convert svg figures to img so that they will scale nicely