Working on #6 document preview support