Added image rotate function
upgraded to VS2012
first pass and XIF Rotation fix