Refactored PPMImage Class