add devicePixelRatio support but only to renderer side

as suggested by https://github.com/cytoscape/cytoscape.js/pull/285