updating image rotation