Add click functionality to photos