move some text stuff into text.js
Add an export hook for textures (same as the broken one for geometries)