def makeSampleName(self, img):
        path = os.path.split(img)
        name = os.path.join(path[0], "%s.sample." % os.path.splitext(path[1])[0]) 
        if self._sample_ext is not None:
            name += self._sample_ext
        else:
            name += self._format