add GoogleImage example, fix a few bugs related to it and previous incomplete refactoring