Make DPI a configuration option