Calculate PNG size