Added support for high DPI displays, other improvements