True.
Where would you rather see the detection of endianness; compatibility.js, util.js, canvas.js ?

About the endianness of dest32, I could force little-endian but this could be significantly smaller on big-endian platforms. Better make two local variables: `black` and `white` based on the endianness of the platform.