Fixed ray creation when the devicePixelRatio is not equals to 1. This PR ...

...has been tested on IE11, IE11 mobile, Chrome Android and Safari (iOS8).