implement dpi scale