$default-image-converter: imagemagick !default;

@mixin background-svg($width, $height, $svg, $png, $inline: false, $image-converter: false) {

@if not $image-converter {
    $image-converter: $default-image-converter;
}

@if svg_polyfill($width, $height, $svg, $png, $image-converter) {
    width: $width;
    height: $height;
    background-size: $width, $height;
    background-repeat: no-repeat;
    background-image: image-url($png);

    @if $inline {
        background-image: inline-image($svg), none;
    } @else {
        background-image: image-url($svg), none;
    }
}

}