			self.presenter.presentLoadingState()
		}
		if (searchTerm.trimmingCharacters(in: .whitespacesAndNewlines) != "") {
			updateSearchHistory(searchTerm: searchTerm)
		}
		imageLoader!.loadImages(searchTerm: searchTerm,
								pageNumber: lastFetchedPageNumber+1,
								successCallback: { imageDataArray in
									if (self.lastFetchedPageNumber == 0) {
										self.currentImageDataArray = imageDataArray
									} else {
										self.currentImageDataArray.append(contentsOf: imageDataArray)
									}