Converting a 2D image to a 3D model