fixes to deal with DPI, so it scale correctly.