Method to change from dp to px