finished reading xml and writing it into png