The code uses the GD2 library to create the image on the fly. It is possible it is not enabled on your remote server. If you try to view the captcha image src location directly will it show? If not the problem is with the GD library not being installed properly on the live server.