add ToGrayscale function for PPM class