generate Terrain mesh from image