XF 1.4 JPEG Support is missing

I recently upgrade my forums to Xenforo 1.4.1, however once all the upgraded files were uploaded I got this error during the setup process:

I did some researching on how I could fix this error, but got nothing. Also this is hosted on my dedi, and we did not have this problem previously. I then tried several commands such as:

yum install php-gd libjpeg* -y
yum install gd gd-devel php-gd
yum install php
httpd restart
However the problem still persists, but now looking like this:

If anyone knows how to fix this issue, help is greatly appreciated