fixed wrong devicePixelRatio calc in firefox18