Image search engines work like any other regular search engine. Once you enter a query in the search box, they look up their database and locate images that match your requirements. They then surface those images in the SERPs. You can click to go to the image sources.