Added -w <FILE> option which dumps path of last image on exit

This allows other programs to know where you left off and to
continue your workflow seamlessly.
customization
Merge branch 'master' into custom

Conflicts:
	config.h
	main.c
	options.c
	options.h