TextureFactory improvements