Edge blending...

Got working on the edge blending algorithm.