Setting pixel density to be independent from OS settings. Fixes issue 6112