Balance smask process chunking
Implements WebGL support