Add devicePixelRatio option to ol.Map constructor
Add devicePixelRatio to ol.FrameState
Add pixelRatio to ol.source.Image#getImage
Scale output canvas by devicePixelRatio