move render preview function to Libertree.UI