Attach (recommended) or Link to PDF file here: https://www.recom-power.com/pdf/Powerline-AC-DC/RAC05-K.pdf

Configuration:
- Web browser and its version: Firefox 56.0 (64-bit)
- Operating system and its version: Windows 10 with OS Build 15063.632
- PDF.js version: ?
- Is an extension: Built-in

Steps to reproduce the problem:
1. Open Page

What is the expected behavior? To properly render the first page. 
![image](https://user-images.githubusercontent.com/1151969/31415345-b1504022-add7-11e7-855b-8030a308f7a2.png)

What went wrong? Renders poorly.
![image](https://user-images.githubusercontent.com/1151969/31415363-d8842096-add7-11e7-818d-728c1102891b.png)

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension): ?

_createMaskCanvas(img) {
    const ctx = this.ctx;
    const width = img.width,
      height = img.height;
    const fillColor = this.current.fillColor;
    const isPatternFill = this.current.patternFill;
    const maskCanvas = this.cachedCanvases.getCanvas(
      "maskCanvas",
      width,
      height
    );
    const maskCtx = maskCanvas.context;
    putBinaryImageMask(maskCtx, img);
    
    
    
    
    const objToCanvas = ctx.mozCurrentTransform;
    let maskToCanvas = Util.transform(objToCanvas, [
      1 / width,
      0,
      0,
      -1 / height,
      0,
      0,
    ]);
    maskToCanvas = Util.transform(maskToCanvas, [1, 0, 0, 1, 0, -height]);
    const cord1 = Util.applyTransform([0, 0], maskToCanvas);
    const cord2 = Util.applyTransform([width, height], maskToCanvas);
    const rect = Util.normalizeRect([cord1[0], cord1[1], cord2[0], cord2[1]]);