prevent duplicate images

fixes a big that resulted in images being uploaded multiple times.
Allow configurable source location in settings page.
Stubs for other settings options.