Supervised Dimensionality Reduction of Mass Spectrometry Images