it can be handled by a private method like getImageTextFromThumbnail(Webelement Thumbnail)