Edit 2D Pattern