Resizing UIImage on iOS. ImageMagick-style.