extension will equal `self.thumbnail_extension` that is built by default from `THUMBNAIL_EXTENSION` setting, the string fallback is just a safeguard.