cleanup. fixed base64 inserting \n.