Creating pointcloud from image stack