Reworked debugging for textures.