Attempt to handle different devicePixelRatios, problems noted in TODOs