more tweaks to extracting xrf spectra from maps ... needs testing