public List <string> CompareToList(List <Images> images) { var list = new List <string>(); list.Add(File.ReadAllText($"{config.TemplatePath}\\{config.ClientScript}")); int i = 1; foreach (var image in images) { var diffimage = Compare(image.ImageA, image.ImageB, i); list.Add(htmlCreator.GetHtmlSnippet(diffimage, i)); i++; } return(list); }