Encoded Invariance in Convolutional Neural Networks