Add command to reverse marked images

Useful, for example, to remove unmarked images.