Refactor base64 helper. Allows project to be run without a base64 folder.