putImageData only the dirty region