Removes getImageData from canvas.js

Also fixes #3256 #3194 #3174 #3116