Implement support for Hi-DPI canvas on Retina screens.