title: Copy two BufferedImages into one image side by side
body: <p>I have two images and I'd like to copy these two images to a new image where the second image is beside the first image and not on top of it.</p>
  
  <pre><code>BufferedImage imgb1 = img1;
  BufferedImage imgb2 = img2;
  BufferedImage imgResult = new BufferedImage(...);
  </code></pre>
  
  <p>where <code>imgResult</code> contains the first and the second image next to each other.</p>