add remove background feature in design, fix pattern sort problem