def METHOD_NAME(self, required_thumbnails):
    _thumbnails = {}
    for name, opts in required_thumbnails.items():
        try:
            opts.update({'subject_location': self.subject_location})
            thumb = self.file.get_thumbnail(opts)
            _thumbnails[name] = thumb.url
        except Exception as e:
            # catch exception and manage it. We can re-raise it for debugging
            # purposes and/or just logging it, provided user configured
            # proper logging configuration
            if filer_settings.FILER_ENABLE_LOGGING:
                logger.error('Error while generating thumbnail: %s', e)
            if filer_settings.FILER_DEBUG:
                raise
    return _thumbnails