Cleanup in TextureDefinition