Modified ppm.cpp to make it work with the Image class and finalized the code