Tools for working with ptex textures