Use image resizing method that is available in iOS 5