Section.py now only keeps the last image after processing the XML file