Refactoring and setting to force HiDPI