Many forms nowadays use a random image in there, which the user needs to read and enter into a textbox in order for the form to be submitted.

For example, check out Jamie's Blog.

How can I do this in PHP? Are there certain APIs I need to use?