code: def _set_query_image(self, page):
          
          pageimage = page.get('pageimage')
          thumbnail = page.get('thumbnail')
  
          if pageimage or thumbnail:
              if 'image' not in self.data:
                  self.data['image'] = []
  
          if pageimage:
              self.data['image'].append({
                  'kind': 'query-pageimage',
                  'file': pageimage})
  
          if thumbnail:
              qthumb = {'kind': 'query-thumbnail'}
              qthumb.update(thumbnail)
              qthumb['url'] = thumbnail.get('source')
              del qthumb['source']
              qthumb['file'] = qthumb['url'].split('/')[-2]
              self.data['image'].append(qthumb)
docs: set image data from action=query response