wrong type returned for gif
rotate image with GD if exit rotation data present
changes suggested by aleks
Merge pull request #211 from bbraybrook/gd_rotate_thumb

Fix incorrect thumbnail rotation with GD and exif orientation data (#1490029)