modified TEdgeMask for Avisynth2.6x