getPixelRatio(pixelRatio) {
    this.replaceColor_(pixelRatio);
    return this.canvas_[pixelRatio] ? pixelRatio : 1;
  }
@param {number} pixelRatio Pixel ratio.
@return {number} Image or Canvas element.