Implementing Convolutional Neural Networks (CNNs) for Image Recognition