Include images from Google into my application
<p>I want to add images from google dynamically on button click.</p>

<p>After searching a lot what I found is:</p>

<pre><code>var searcher = new google.search.customSearchControl.getImageSearcher();
searcher.setRestriction(
  google.search.customSearchControl.getImageSearcher.RESTRICT_FILETYPE,
  google.search.customSearchControl.getImageSearcher.FILETYPE_JPG
);
searcher.setRestriction(
  google.search.customSearchControl.getImageSearcher.RESTRICT_COLORIZATION,
  google.search.customSearchControl.getImageSearcher.COLORIZATION_GRAYSCALE
);
searcher.execute('London');
</code></pre>

<p>But I am unable to use this in my code.
Is there a way I can receive the images in a son object?</p>