introducing the event of selecting a picture