Rotated video resizing not working as expected

While integrating I found a couple of issues:

* Resizing a 90 or 270 rotated image didn't work correctly, since resizing math was happening on un-rotated meta information
* Rotating a 180 rotated image didn't work, as a `Unable to find a suitable output format for 'hflip'
hflip: Invalid argument` was being thrown. It appears the library expects no spaces in the option argument.

This fixes up these two issues.