Login Image (Rebranding) - Fatal error: Call to undefined function

Hi,
I have installed this as described in the instructions but after uploading the new image I get the following error: Fatal error: Call to undefined function ImageCreateFrompng()

It appears to upload the image to the login-image directory but it doesn't change it.

Thanks in advance for any help!