So `**thumbnail_options` should be fine here (and you'll have to `thumbnail_options.setdefault('quality', self.thumbnail_quality)` rather than create it as a variable and remove `quality=quality`)