convert image to 3d heightmap in .PLY format. using php 5.3 and imagick library