WebGL issues

Fix issues with webgl in firefox (and safari). Safari still has some issues I think, but hey, webgl isn't even enabled by default there.

Bonus: slightly smoothalized spriteloading.