title: Overlay one image over another
body: <p>I'm trying to overlay 1 image over the top of another but cant seem to work it out - my code throws no errors but doesn't output the requested image modification. Can someone point me in the right direction?</p>
  
  <p><strong>Here is my code</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>const user = message.mentions.users.first();
  
  if (args[0] === undefined) {
      message.channel.send("You can't jail yourself, dummy!")
  } else {
      var images = [user.avatarURL({ format: 'png', dynamic: true, size: 256 }), 'https://i.pinimg.com/originals/7b/51/9a/7b519a3422f940011d34d1f9aa75f683.png']
      var jimps = []
      //turns the images into readable variables for jimp, then pushes them into a new array
      for (var i = 0; i &lt; images.length; i++){
          jimps.push(jimp.read(images[i]))
      }
      //creates a promise to handle the jimps
      await Promise.all(jimps).then(function(data) {
          return Promise.all(jimps)
      }).then(async function(data){
          // --- THIS IS WHERE YOU MODIFY THE IMAGES --- \\
          data[0].composite(data[1], 0, 0) //adds the second specified image (the jail bars) on top of the first specified image (the avatar). "0, 0" define where the second image is placed, originating from the top left corner
          //you CAN resize the second image to fit the first one like this, if necessary. The "100, 100" is the new size in pixels.
          data[1].resize(100,100)
  
          //this saves our modified image
          data[0].write(`\Users\jmoor\Pictures\JIMP Test\test.png`)
      })
      message.channel.send(`${user.username} has been jailed!`, {file: `\Users\jmoor\Pictures\JIMP Test\test.png`})
  }
  </code></pre>
  
  <p>I have defined jimp above and also am using a command handler I made.</p>