I am looking for a generic solution for this problem.

Background information: Amazon recommends to request their login button image from amazon.com and to not store it locally at all. Though, this is not the case for all resource owners (eg. Google). And I prefer to include the images of all possible resource owners in the same unified way. Furthermore I prefer to include them via CSS and not via programmatic code generation.