wrong type returned for gif
rotate image with GD if exit rotation data present
changes suggested by aleks
Cleanup after PR merge, updated changelog