Debugging the texture mapping procedure (not done yet)