Added a scale factor for high dpi devices