pixel size calculation