make sure errors display from gd lib functions