Fix the check for file extensions (fix #49).
Copy the options dict to avoid adding exif meta to the settings dict.