Change fig to root, change KnitPost function