Rework texture mapping to support textures of any size.