I'm using a theme which displays a grid of images, but it only works with landscape images at the moment (with portrait images, people's heads are cut off).
The theme uses custom featured image sizes defined in functions.php through the use of add_image_size().
Is there a way to set the image sizes proportionately to maintain the correct aspect ratio?