Add debug option to write mip levels to canvases in document
Better debugging output for texture index, include UV coords and correct block name
Correct textures and indices, but only with atlasSize 512