Php-gd:如何修复gd php包?

I am setting up a website and it uses the package gd. On my phpinfo() it says it is enabled.

I have already tried removing the comments from the code. I have messed around with 20-gd.ini file and the gd.so file.

create_image();

I was supposed to get the a captcha that was generated in the php represented by an image but all I get is the alt in the code. I have tried every other stackoverflow solution but none of them seem to work. Do you know what I should do thanks.