Added image rotate

and some more logging