added different dpi support