Refactored meters to pixels util