atoxaa,
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<style type="text/css">
img {
height: 100px;
}
</style>
<script src="http://www.google.com/jsapi"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript">
google.setOnLoadCallback(function()
{
function getimage(id,word) {
var image_key=encodeURIComponent(word);
var img = $('<img/>',{'src':'http://www.ajaxload.info/images/exemples/26.gif'}).appendTo('body');
$['getJSON']('http://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=' + image_key + '&rsz=' + id + '&imgsz=medium&callback=?', function (json) {
$.each(json['responseData']['results'],function(indx, element){
$('<img/>',{'src':element['url'],
'error' : function () {$(this).remove()}
}).appendTo('body')
});
img.remove()
});
};
getimage(8,'gold key');
getimage(8,'dog');
});
</script>
</head>
<body>
</body>
</html>