Research on Several Image Processing Problems in Intelligent Embroidery CAD