Tests for gd.BADFILE error
gd.open now auto orients the Exif-rotated images. gd.Image now has `exif` property and `autoOrient` method.