Broken TGA code.
Fix to stop texture extract going over 256 images.