svg = html`<svg id="preview" class="image" width="${outputWidth}" viewbox="0.000001 0 ${canvasWidth} ${canvasHeight}">
<defs>
<filter id="dropshadow">
<feGaussianBlur in="FillPaint" stdDeviation="8"></feGaussianBlur>
<feColorMatrix type="matrix"
values="${backgroundColor.r / 255} 0 0 0 0
0 ${backgroundColor.g / 255} 0 0 0
0 0 ${backgroundColor.b / 255} 0 0
0 0 0 0.4 0" />
</filter>
<clipPath id="edge" clipPathUnits="userSpaceOnUse">
<path
d="${clipPath}" style="transform: scaleX(${canvasWidth/620})">
</path>
</clipPath>
</defs>
<g class="inner">
<rect width="${canvasWidth}" height="${canvasHeight}" style="fill: ${colorString}"></rect>
<path fill="rgba(0, 0, 0, 0.2)" filter="url(#dropshadow)" d="${clipPath}" style="transform: scaleX(${canvasWidth/620})"></path>
<image x="${margin.left}" href="${base64image}" width="${displayWidth}" height="${displayWidth * imageAspect}" clip-path="url(#edge)"></image>
<text class="source" x="${canvasWidth - margin.right}" y="${canvasHeight}" dy="-6" style="text-anchor: end; font-size:14px; fill: rgb(150,150,150)">${credit}</text>
</g>
</svg>`