Compile:

$ make
$ sudo make install

If compilation does not work or you want to customize stuff (like disable
Xinerama support), edit config.mk first.

What is feh?

http://linuxbrit.co.uk/feh/

Note:
For lossless rotation you will need the "jpegtran" binary supplied by the
jpeg library. In Debian, it's shipped by libjpeg-progs.