text: const faker = require('faker');
  const fetch = require('node-fetch');
  
  const MOCK_BANNER_URL = 'https://picsum.photos/800/200/?random';
  
  function createAvatar(fullname) {
      const name = fullname.replace(' ', '+');
      const background = faker.internet.color().replace('#', '');
      const url = `https://ui-avatars.com/api/?name=${name}&size=128&background=${background}`;
      return fetch(url).then(data => data.buffer());
  }
  
  function createBanner() {
      return fetch(MOCK_BANNER_URL).then(data => data.buffer());
  }
  
  module.exports = {
      createAvatar,
      createBanner
  };
  