Moving and rotating to the same plane

im trying to rotate an image by 90 degrees to be land scape on a tilted surface but the move tool doesnt corospond to the tilted surface

Hi,
Yet it works well. (moving and rotating tool)