Implement preview, switch to dulwich