Image rotation without the toolbox