Shouldn't this be
```js
if (this.imageOpacity != 1) {
  context.globalAlpha = alpha * this.imageOpacity_;
}
```
?