Added support for high DPI displays.