code: function processFrame(imageBitmap) {
    canvas.width = imageBitmap.width;
    canvas.height = imageBitmap.height;
    canvas.getContext('2d').drawImage(imageBitmap, 0, 0);
  }
docs: Draw the imageBitmap returned by grabFrame() onto a canvas
  @param {ImageBitmap} imageBitmap