corrected an issue with autorotation

Interrobang has found the issue and described it in the forum: http://processwire.com/talk/topic/3278-core-imagemanipulation/page-2#entry55898
It was wrong to swap the targetdimensions too. We only need to adjust the imagedimensions after a rotation of 90 or 270 degree.