Need Help In Understanding How Image Functions Work

Hello!

We're trying to develop a way for vendors to upload a background image to their store's page. We're not sure exactly how the functions found in fn.images work, specifically how pair_ids work and how each image is eventually matched to their corresponding vendor like the current system with the logos of the vendors.

Thanks.