Added support for maintaining the aspect ratio of controls while resizing

Allows adapting to multiple screen resolutions (e.g. standard and retina) without distorting when they differ in aspect ratio (e.g. iPhone 4S and iPhone 5).