Made main write out voxels to tga images