#include <jpeglib.h>
#include <png.h>
#include <zlib.h>
/** image formats, tried in this order */
static char *IMAGE_TYPES[] = { "tga", "png", "jpg", NULL };