Proper Resizing of UIImages using Core Graphics and preserving aspect ratio