make sure dpi is used