Switch from babel to obabel
Rewrite main preview generation code