Attach (recommended) or Link to PDF file here:
https://s3.eu-west-1.amazonaws.com/scai-dev.website.com/tmp/8ab8b56a-fa91-11eb-8d74-0242ac110004.pdf

Hi,
Please see an incorrect canvas rendering for the following document - page 9 specifically. It reproduces on https://mozilla.github.io/pdf.js/web/viewer.html (tried with Chrome). Other pages in this document look pretty much the same but the problem is on page 9 only.

Original screenshot:
![image](https://user-images.githubusercontent.com/23075641/129066656-7bb2fb56-2b88-4f40-8e67-b95bdeb9e521.png)


PDF JS:

![image](https://user-images.githubusercontent.com/23075641/129066734-56503a5c-413c-49c1-9e1c-470da3a642ed.png)

const drawnWidth = Math.ceil(rect[2] - rect[0]);
    const drawnHeight = Math.ceil(rect[3] - rect[1]);
    const fillCanvas = this.cachedCanvases.getCanvas(
      "fillCanvas",
      drawnWidth,
      drawnHeight,
      true
    );
    const fillCtx = fillCanvas.context;
    
    const offsetX = Math.min(cord1[0], cord2[0]);
    const offsetY = Math.min(cord1[1], cord2[1]);
    fillCtx.translate(-offsetX, -offsetY);
    fillCtx.transform.apply(fillCtx, maskToCanvas);
    
    const scaled = this._scaleImage(
      maskCanvas.canvas,
      fillCtx.mozCurrentTransformInverse
    );
    fillCtx.imageSmoothingEnabled = getImageSmoothingEnabled(
      fillCtx.mozCurrentTransform,
      img.interpolate
    );
    fillCtx.drawImage(
      scaled.img,
      0,
      0,
      scaled.img.width,
      scaled.img.height,
      0,