Save settings to xml
Better encoding of flash points to include area of contour