Lesion filling

Following #115 I'm working on this PR. Please __do not merge__ it needs a few weeks of work and testing.