Save heightmap to file