Fixed some bugs in the coherence flow computation pipline, started debbuging improvedInpainting