Re-ordered the image manipulation process. Now, to see the 3D model the user has to segment the sample, this removes the duplicated segmented process in the code