improved sprite code, prepared sprites for actor.