Move that internally used ColFmt enum below public stuff
Make ImageIOFuncs not public
Use long instead of int for widths and heights everywhere
Check dimensions in read_tga()