Add EXIF and rotate for engine

If the image has no EXIF segment, `.get_exif()` returns `None`. And `None` has no `data` attribute. That's why all those tests are failing. Could you please fix this?