code: def queryNamer(paramName, usePageUrl=False):
      
      @classmethod
      def _namer(cls, imageUrl, pageUrl):
          """Get URL query part."""
          url = pageUrl if usePageUrl else imageUrl
          return getQueryParams(url)[paramName][0]
      return _namer
docs: Get name from URL query part.