Analysis of Cancer Margins in Mass Spectrometry Images