def generate(self):
    self.__init_image()
    for trace in self.traces:
        self.__mark_trace(trace)
    mode = ('abstract' if self.abstract else 'detailed')
    self.img.save((('blood_' + mode) + '.png'))
    return
def generate(self):
    self.__init_image()
    for trace in self.traces:
        self.__mark_trace(trace)
    mode = ('abstract' if self.abstract else 'detailed')
    self.img.save((('blood_' + mode) + '.png'))
    return