Convert UIImage to Base64 and vice versa

Code used to convert an image to base64 or an UIImage to base64 NSString