Restructure photo associations