Gravar-mail: Generative-Discriminative Basis Learning for Medical Imaging