trivial-captcha only exports one function, MAKE-CAPTCHA. The images are created as PGM (Portable Greymap) files which can be processed using the netpbm package, for example:
pnmtopng foo.pnm > foo.png
For source code and a few example images, see Trivial Captcha.