Attach (recommended) or Link to PDF file here: [ICEE-B.2017.8192026.pdf](https://github.com/mozilla/pdf.js/files/6651211/ICEE-B.2017.8192026.pdf)

Configuration:
- Web browser and its version:  Firefox 89.0 (64-bit)
- Operating system and its version: Windows 10 Pro Version 21H1
- PDF.js version: I don't know, sorry
- Is a browser extension: No

Steps to reproduce the problem:
1. Open PDF
2. Figure 1 in page 2 is missing

What is the expected behavior? (add screenshot)
This is how it looks in Edge
![image](https://user-images.githubusercontent.com/40286841/121958287-839b0b80-cd31-11eb-8400-7d9c088d83fa.png)

What went wrong? (add screenshot)
This is how it looks in firefox
![image](https://user-images.githubusercontent.com/40286841/121958359-99a8cc00-cd31-11eb-9d15-b94d5884e03d.png)


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

throw new Error(`bad image kind: ${imgData.kind}`);
    }
  }
  function putBinaryImageMask(ctx, imgData) {
    const height = imgData.height,
      width = imgData.width;
    const partialChunkHeight = height % FULL_CHUNK_HEIGHT;
    const fullChunks = (height - partialChunkHeight) / FULL_CHUNK_HEIGHT;
    const totalChunks = partialChunkHeight === 0 ? fullChunks : fullChunks + 1;
    const chunkImgData = ctx.createImageData(width, FULL_CHUNK_HEIGHT);
    let srcPos = 0;
    const src = imgData.data;
    const dest = chunkImgData.data;
    for (let i = 0; i < totalChunks; i++) {
      const thisChunkHeight =
        i < fullChunks ? FULL_CHUNK_HEIGHT : partialChunkHeight;
      
      
      let destPos = 3; 
      for (let j = 0; j < thisChunkHeight; j++) {
        let elem,
          mask = 0;
        for (let k = 0; k < width; k++) {
          if (!mask) {
            elem = src[srcPos++];
            mask = 128;
          }
          dest[destPos] = elem & mask ? 0 : 255;
          destPos += 4;
          mask >>= 1;