Prepare canvas element for webGL