Flag Rush Tutorial - Load own Terrain

Hi. If I use the code from the flag rush tut., how I can load my own terrain from a 3d modeling programm? It uses the midpointheightmap, but how I can add an image to it?