Add base64_encode for widgets