Change the character's image depending on the direction he walks.