Texture reimplementation