fixed bug pixelratio for node.js