For performance reasons, we probably shouldn't call `isHighDpi()` repeatedly. Maybe set a variable before the `each` loop and check that instead?