high dpi support; close #47
some fix