Fix TypedArrays on IE9

Uint8Array(imgData.data) fails because imgData.data doesn't have the slice method which the compatibility tries to use.

Fixes #2824