Added getImageData and toDataURL methods to canvas
merge origin