Learning Transformation-Invariant Visual Representations In Spiking Neural Networks