convert image to 3d heightmap in .PLY format