Added Swift version of UIImage+AutomaticCapInsets
Updated for Swift