code: function replaceSizeTokens(pattern, width, height, next) {
          pattern = pattern
            .replace(/%r/g, '%wx%h')
            .replace(/%w/g, width)
            .replace(/%h/g, height);
  
          next(null, pattern);
        }
docs: Replace size tokens (%w, %h, %r) in pattern