Add check for GD lib