Add limit checks for exif-rotation

Break if ifd-count is greater than 100 because there only exist about
118 different tags whereby about 20 are specific to special hardware.
Also break if there are more than 5 ifd-regions because there shouldn't
be any more...