In the context of Convolutional Neural Networks (CNNs) used for image recognition tasks, what is the primary advantage of incorporating convolutional layers into the architecture? How do these layers help capture meaningful features and patterns from images effectively?