Captcha Image Broken

I am using yii built in captcha with an extension .it is working on local good but online it is not working please tell me how can i check that it is problem of gd extension or issue of path.