Most browsers will default to looking for a favicon in the root directory like so: http://example.com/favicon.ico. You can use this for a favicon for your images.
If you want different favicons for each image, that's simply not possible (browsers provide no mechanism for this). There is a proposed standard for setting favicons via HTTP headers (RFC 5988) but it's still a draft and hasn't been implemented by browser vendors.