found correct conversion from pixels to units