Edit google-images handler to abstract url method.

This commit abstracts the get url method.