base64 is deprecated added call to base64EncodedStringWithOptions instead