add select photo function