added manual garbage collection in texture tool