Unsupervised Preprocessing to Improve Generalisation for Medical Image Classification