debugged ppm output, added inheritance for geometry types