fix problem with output buffering in `generateCaptcha()`

fixed #142