Adding some debugging for texture mapping