Add EXIF and rotate for engine

`math` is unnecessary here. Can you please remove this import?