Refurbished the Library class (TextureLib).