Save settings in local storage. Should make it faster when uploading multiple images. Fixes #2.