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): ?

maskCtx,
  layerCtx,
  width,
  height,
  subtype,
  backdrop,
  transferMap
) {
  const hasBackdrop = !!backdrop;
  const r0 = hasBackdrop ? backdrop[0] : 0;
  const g0 = hasBackdrop ? backdrop[1] : 0;
  const b0 = hasBackdrop ? backdrop[2] : 0;
  let composeFn;
  if (subtype === "Luminosity") {
    composeFn = composeSMaskLuminosity;
  } else {
    composeFn = composeSMaskAlpha;
  }
  
  const PIXELS_TO_PROCESS = 1048576;
  const chunkSize = Math.min(height, Math.ceil(PIXELS_TO_PROCESS / width));
  for (let row = 0; row < height; row += chunkSize) {
    const chunkHeight = Math.min(chunkSize, height - row);
    const maskData = maskCtx.getImageData(0, row, width, chunkHeight);
    const layerData = layerCtx.getImageData(0, row, width, chunkHeight);