Related trick for changing an image's size, aspect ratio, or combining multiple images:
1. Open Preview.app.
2. Select the whole image and copy it [⌘-a ⌘-c].
3. Menu bar > Tools > Adjust Size then click the lock icon. Set to desired dimensions and save.
4. Paste the image over the distorted image. Do what you will with the extra space.