old old old code to manage a personal photo collection