Selfies On Mars

The Curiosity Rover takes selfies on Mars - so how does it do it without having its robot arm in the foreground of every shot?