import struct, zlib, sys class image: w = 0 h = 0 data = [] def read_tga(f): image = f.read() img_type = struct.unpack("