Block edging with denoise algo added, bugs fixed.