Refactored common code between doing an image search for the first time and subsequent loading of images. On the first go, we clear underlying data while on subsequent loads, we append data without clearing contents.