Adding return 0 to doLinearTopologicalWatersher::main and litle refactor on png image writer