adding function to calculate approx number of physical pixels