Yep, the GD library is not installed correctly. The thread
here contains all the info I know for you to set it up correctly, and yes I'd recommend that you upgrade PHP to the latest stable release, which should come with a bundled version of the GD library, probably gd-2.0.28 or higher.