Understand how the collect upload an image to google drive and sheet

Hello, I am trying to understand how the collect is uploading the picture in google drive and link it in the google sheet.

Where is this in the source code?

Sebas