dev refactor renderbase64 to render to filesystem and read