Adding support for pixel to dp conversion