added hidpi support