Use cross-browser anvas api