Sounds more like an imagemagick or GD2 error - might be worth upgrading whichever you are using.