added image rotation utility and applied it to the player.