added automatic high dpi support for webgl renderer