Small bug fix for add/remove texture from library