Patching CanvasRenderingContext2D.prototype.drawImage