html5-canvas Pixel Manipulation with "getImageData" and "putImageData"