added the possibility of creating a terrain with a given heightmap