Supervised Dimensionality Reduction and Classification with Convolutional Autoencoders