apply layouts to old photopages