* fixed bug: buffer overflow when exporting TGA files