Mouse lock fix: adjust to spec changes
HtmlCanvasImage setRgb fix