I've changed it now, so that `detectDpi` both reads and writes `this._dpi`, and `__getDpi` just calls this method locally.