Minor improvements on Heightmap class. Still unused.