private void ReplaceCollectionActions(XElement annotation) { AddMagickImageCollectionMethods(annotation); annotation.Remove(); }