Adding base64 encode function to media manager