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

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