Per #2985 a tiny fix to retrieve the proper height of an image in the GD adapter