you may make a blank hmp(flat) with MED, then load it in the engine and deform it's vertices according to the brightness of each pixel of an image