generate a 3d model from the image