implement photo picking and photo merging