title: How to center an image in a rectangle?
body: <p>How do you center an image inside a rectangle with:</p>
  
  <pre><code>Batch.draw(imagename, new Rectangle(x, y, imagename.width, imagename.height), Color.White);
  </code></pre>