What function gets called in shotgrid web app to load thumbnails?

I want to know what shotgrid webapp functions gets called which is loading thumbnail images ? I want to add few more checks and conditions and display overlay text on the thumbnail!
if its possible