Replaced canvas pixel array with typed array