title: Increase performance of dom-to-image lib
body: <p>I am using dom-to-image lib in order to export DOM to blob from which I create PDF docs.</p>
  
  <p>Problem is that there is need approximately 25 seconds for the function to finish.</p>
  
  <p>Is there is any known way how dom-to-image can be optimised?</p>
  
  <pre><code>let map = document.getElementById('map');
  
  domtoimage.toBlob(map).then(imageBlob =&gt; {
              ExportTools.exportService.getPDF(imageBlob, eventData);
          });
  </code></pre>
  
  <p>An exported picture is big almost 1920px in width and there is a lot of white space.</p>