calculate correct density for svg -> pbm convert