Added support for HiDPI displays