Use rsvg-convert instead of imagemagick to convert svg to png.