C++: Implement fixed output to "render.ppm"