code: function(canvas) {
              var base64 = canvas.toDataURL('image/jpeg', options.jpegQuality)
                  .replace(/^data:image\/(png|jpeg|jpg|gif);base64,/, '');
              imageData = base64toBlob(base64, 'image/jpeg');       // Byte array
          }
docs: Read the canvas data and save it as a binary byte array to image data variable.
  Get this data using the method getImageData().
  @param canvas