Added ability to specify that we want to adjust the width to maintain aspect ratio instead of height