/**
  * Sets the sprite's appearance.
  *
  * @param appearance
  */
 public void setAppearance(Appearance appearance) {
   if (appearance == null) {
     image = null;
     setAnimation(null);
     rewind();
   } else {
     appearance.toSprite(this);
   }
 }