Categorization of a collection of pictures into structured events