Lesion filling

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