texture synthesis pipeline (bug before discrete solver)