Checked in stb_image.c from http://code.google.com/p/stblib/