Add function for elastix, raw file and mask image

Need to integrate the whole process, need to improve the sorting of
contour points