Add constrainAspectRatio

Here's a little utility I've used a couple of times, mostly used on buttons that might resize.