added option for disabling base64