Added scripts to add image attributes to xml.