Fixed bug with device pixel ratio in macbook retina and canvas size