We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[SIMPLE THEME]: Reddit search engine breaks Simple Theme "Image" tab Style.
<!-- PLEASE FILL THESE FIELDS, IT REALLY HELPS THE MAINTAINERS OF SearXNG -->

**Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG**
Powered by searxng - 1.0.0-999-e4025cd1

**How did you install SearXNG?**
SearXNG docker image with docker-compose.

**What happened?**
<!-- A clear and concise description of what the bug is. -->
If you turn on reddit search engine from settings.yml it gets enabled for several categories including "Images." However, things get a little funny with the images tab as far as the formatting goes. As you can see in the image below, the results don't encompass the entire canvas but only a portion like they do with "General" tab. I believe this might be due to reddit returning search results vs images when you're in the image tab (image 2 below). You'll see these search results if you keep scrolling down.

**How To Reproduce**
<!-- How can we reproduce this issue? (as minimally and as precisely as possible) -->
1. Make sure reddit search engine is turned on for images category in settings or globally via settings.yml.
2. Search for something and go to images tab.
3. Notice the behavior where images only take up the left-hand side of the canvas.

**Expected behavior**
<!-- A clear and concise description of what you expected to happen. -->
Images should use the entire canvas like they do when reddit search engine is turned off (image 3) and search should only include images or gifs etc.

**Screenshots & Logs**
<!-- If applicable, add screenshots, logs to help explain your problem. -->
![image](https://user-images.githubusercontent.com/68975831/139709131-bf5468ea-d3de-41a6-994b-0e09ec3adcac.png)
![image](https://user-images.githubusercontent.com/68975831/139709582-a6b6194a-6941-4ddb-be66-85238a5784a2.png)
![image](https://user-images.githubusercontent.com/68975831/139710023-e5def10b-e633-481c-a6c9-0e0ab2c8fda3.png)

**Alternatives**
Remove Reddit search engine from images category by default so it doesn't get enabled from settings.yml.
[SIMPLE THEME]: Reddit search engine breaks Simple Theme "Image" tab Style.
<!-- PLEASE FILL THESE FIELDS, IT REALLY HELPS THE MAINTAINERS OF SearXNG -->

**Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG**
Powered by searxng - 1.0.0-999-e4025cd1

**How did you install SearXNG?**
SearXNG docker image with docker-compose.

**What happened?**
<!-- A clear and concise description of what the bug is. -->
If you turn on reddit search engine from settings.yml it gets enabled for several categories including "Images." However, things get a little funny with the images tab as far as the formatting goes. As you can see in the image below, the results don't encompass the entire canvas but only a portion like they do with "General" tab. I believe this might be due to reddit returning search results vs images when you're in the image tab (image 2 below). You'll see these search results if you keep scrolling down.

**How To Reproduce**
<!-- How can we reproduce this issue? (as minimally and as precisely as possible) -->
1. Make sure reddit search engine is turned on for images category in settings or globally via settings.yml.
2. Search for something and go to images tab.
3. Notice the behavior where images only take up the left-hand side of the canvas.

**Expected behavior**
<!-- A clear and concise description of what you expected to happen. -->
Images should use the entire canvas like they do when reddit search engine is turned off (image 3) and search should only include images or gifs etc.

**Screenshots & Logs**
<!-- If applicable, add screenshots, logs to help explain your problem. -->
![image](https://user-images.githubusercontent.com/68975831/139709131-bf5468ea-d3de-41a6-994b-0e09ec3adcac.png)
![image](https://user-images.githubusercontent.com/68975831/139709582-a6b6194a-6941-4ddb-be66-85238a5784a2.png)
![image](https://user-images.githubusercontent.com/68975831/139710023-e5def10b-e633-481c-a6c9-0e0ab2c8fda3.png)

**Alternatives**
Remove Reddit search engine from images category by default so it doesn't get enabled from settings.yml.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `searx/engines/reddit.py`
Content:
```
1 # SPDX-License-Identifier: AGPL-3.0-or-later
2 """
3  Reddit
4 """
5 
6 import json
7 from datetime import datetime
8 from urllib.parse import urlencode, urljoin, urlparse
9 
10 # about
11 about = {
12     "website": 'https://www.reddit.com/',
13     "wikidata_id": 'Q1136',
14     "official_api_documentation": 'https://www.reddit.com/dev/api',
15     "use_official_api": True,
16     "require_api_key": False,
17     "results": 'JSON',
18 }
19 
20 # engine dependent config
21 categories = ['general', 'images', 'news', 'social media']
22 page_size = 25
23 
24 # search-url
25 base_url = 'https://www.reddit.com/'
26 search_url = base_url + 'search.json?{query}'
27 
28 
29 # do search-request
30 def request(query, params):
31     query = urlencode({'q': query, 'limit': page_size})
32     params['url'] = search_url.format(query=query)
33 
34     return params
35 
36 
37 # get response from search-request
38 def response(resp):
39     img_results = []
40     text_results = []
41 
42     search_results = json.loads(resp.text)
43 
44     # return empty array if there are no results
45     if 'data' not in search_results:
46         return []
47 
48     posts = search_results.get('data', {}).get('children', [])
49 
50     # process results
51     for post in posts:
52         data = post['data']
53 
54         # extract post information
55         params = {
56             'url': urljoin(base_url, data['permalink']),
57             'title': data['title']
58         }
59 
60         # if thumbnail field contains a valid URL, we need to change template
61         thumbnail = data['thumbnail']
62         url_info = urlparse(thumbnail)
63         # netloc & path
64         if url_info[1] != '' and url_info[2] != '':
65             params['img_src'] = data['url']
66             params['thumbnail_src'] = thumbnail
67             params['template'] = 'images.html'
68             img_results.append(params)
69         else:
70             created = datetime.fromtimestamp(data['created_utc'])
71             content = data['selftext']
72             if len(content) > 500:
73                 content = content[:500] + '...'
74             params['content'] = content
75             params['publishedDate'] = created
76             text_results.append(params)
77 
78     # show images first and text results second
79     return img_results + text_results
80
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/searx/engines/reddit.py b/searx/engines/reddit.py
--- a/searx/engines/reddit.py
+++ b/searx/engines/reddit.py
@@ -18,7 +18,7 @@
 }
 
 # engine dependent config
-categories = ['general', 'images', 'news', 'social media']
+categories = ['social media']
 page_size = 25
 
 # search-url

{"golden_diff": "diff --git a/searx/engines/reddit.py b/searx/engines/reddit.py\n--- a/searx/engines/reddit.py\n+++ b/searx/engines/reddit.py\n@@ -18,7 +18,7 @@\n }\n \n # engine dependent config\n-categories = ['general', 'images', 'news', 'social media']\n+categories = ['social media']\n page_size = 25\n \n # search-url\n", "issue": "[SIMPLE THEME]: Reddit search engine breaks Simple Theme \"Image\" tab Style.\n<!-- PLEASE FILL THESE FIELDS, IT REALLY HELPS THE MAINTAINERS OF SearXNG -->\r\n\r\n**Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG**\r\nPowered by searxng - 1.0.0-999-e4025cd1\r\n\r\n**How did you install SearXNG?**\r\nSearXNG docker image with docker-compose.\r\n\r\n**What happened?**\r\n<!-- A clear and concise description of what the bug is. -->\r\nIf you turn on reddit search engine from settings.yml it gets enabled for several categories including \"Images.\" However, things get a little funny with the images tab as far as the formatting goes. As you can see in the image below, the results don't encompass the entire canvas but only a portion like they do with \"General\" tab. I believe this might be due to reddit returning search results vs images when you're in the image tab (image 2 below). You'll see these search results if you keep scrolling down.\r\n\r\n**How To Reproduce**\r\n<!-- How can we reproduce this issue? (as minimally and as precisely as possible) -->\r\n1. Make sure reddit search engine is turned on for images category in settings or globally via settings.yml.\r\n2. Search for something and go to images tab.\r\n3. Notice the behavior where images only take up the left-hand side of the canvas.\r\n\r\n**Expected behavior**\r\n<!-- A clear and concise description of what you expected to happen. -->\r\nImages should use the entire canvas like they do when reddit search engine is turned off (image 3) and search should only include images or gifs etc.\r\n\r\n**Screenshots & Logs**\r\n<!-- If applicable, add screenshots, logs to help explain your problem. -->\r\n![image](https://user-images.githubusercontent.com/68975831/139709131-bf5468ea-d3de-41a6-994b-0e09ec3adcac.png)\r\n![image](https://user-images.githubusercontent.com/68975831/139709582-a6b6194a-6941-4ddb-be66-85238a5784a2.png)\r\n![image](https://user-images.githubusercontent.com/68975831/139710023-e5def10b-e633-481c-a6c9-0e0ab2c8fda3.png)\r\n\r\n**Alternatives**\r\nRemove Reddit search engine from images category by default so it doesn't get enabled from settings.yml.\n[SIMPLE THEME]: Reddit search engine breaks Simple Theme \"Image\" tab Style.\n<!-- PLEASE FILL THESE FIELDS, IT REALLY HELPS THE MAINTAINERS OF SearXNG -->\r\n\r\n**Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG**\r\nPowered by searxng - 1.0.0-999-e4025cd1\r\n\r\n**How did you install SearXNG?**\r\nSearXNG docker image with docker-compose.\r\n\r\n**What happened?**\r\n<!-- A clear and concise description of what the bug is. -->\r\nIf you turn on reddit search engine from settings.yml it gets enabled for several categories including \"Images.\" However, things get a little funny with the images tab as far as the formatting goes. As you can see in the image below, the results don't encompass the entire canvas but only a portion like they do with \"General\" tab. I believe this might be due to reddit returning search results vs images when you're in the image tab (image 2 below). You'll see these search results if you keep scrolling down.\r\n\r\n**How To Reproduce**\r\n<!-- How can we reproduce this issue? (as minimally and as precisely as possible) -->\r\n1. Make sure reddit search engine is turned on for images category in settings or globally via settings.yml.\r\n2. Search for something and go to images tab.\r\n3. Notice the behavior where images only take up the left-hand side of the canvas.\r\n\r\n**Expected behavior**\r\n<!-- A clear and concise description of what you expected to happen. -->\r\nImages should use the entire canvas like they do when reddit search engine is turned off (image 3) and search should only include images or gifs etc.\r\n\r\n**Screenshots & Logs**\r\n<!-- If applicable, add screenshots, logs to help explain your problem. -->\r\n![image](https://user-images.githubusercontent.com/68975831/139709131-bf5468ea-d3de-41a6-994b-0e09ec3adcac.png)\r\n![image](https://user-images.githubusercontent.com/68975831/139709582-a6b6194a-6941-4ddb-be66-85238a5784a2.png)\r\n![image](https://user-images.githubusercontent.com/68975831/139710023-e5def10b-e633-481c-a6c9-0e0ab2c8fda3.png)\r\n\r\n**Alternatives**\r\nRemove Reddit search engine from images category by default so it doesn't get enabled from settings.yml.\n", "before_files": [{"content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n\"\"\"\n Reddit\n\"\"\"\n\nimport json\nfrom datetime import datetime\nfrom urllib.parse import urlencode, urljoin, urlparse\n\n# about\nabout = {\n    \"website\": 'https://www.reddit.com/',\n    \"wikidata_id\": 'Q1136',\n    \"official_api_documentation\": 'https://www.reddit.com/dev/api',\n    \"use_official_api\": True,\n    \"require_api_key\": False,\n    \"results\": 'JSON',\n}\n\n# engine dependent config\ncategories = ['general', 'images', 'news', 'social media']\npage_size = 25\n\n# search-url\nbase_url = 'https://www.reddit.com/'\nsearch_url = base_url + 'search.json?{query}'\n\n\n# do search-request\ndef request(query, params):\n    query = urlencode({'q': query, 'limit': page_size})\n    params['url'] = search_url.format(query=query)\n\n    return params\n\n\n# get response from search-request\ndef response(resp):\n    img_results = []\n    text_results = []\n\n    search_results = json.loads(resp.text)\n\n    # return empty array if there are no results\n    if 'data' not in search_results:\n        return []\n\n    posts = search_results.get('data', {}).get('children', [])\n\n    # process results\n    for post in posts:\n        data = post['data']\n\n        # extract post information\n        params = {\n            'url': urljoin(base_url, data['permalink']),\n            'title': data['title']\n        }\n\n        # if thumbnail field contains a valid URL, we need to change template\n        thumbnail = data['thumbnail']\n        url_info = urlparse(thumbnail)\n        # netloc & path\n        if url_info[1] != '' and url_info[2] != '':\n            params['img_src'] = data['url']\n            params['thumbnail_src'] = thumbnail\n            params['template'] = 'images.html'\n            img_results.append(params)\n        else:\n            created = datetime.fromtimestamp(data['created_utc'])\n            content = data['selftext']\n            if len(content) > 500:\n                content = content[:500] + '...'\n            params['content'] = content\n            params['publishedDate'] = created\n            text_results.append(params)\n\n    # show images first and text results second\n    return img_results + text_results\n", "path": "searx/engines/reddit.py"}], "after_files": [{"content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n\"\"\"\n Reddit\n\"\"\"\n\nimport json\nfrom datetime import datetime\nfrom urllib.parse import urlencode, urljoin, urlparse\n\n# about\nabout = {\n    \"website\": 'https://www.reddit.com/',\n    \"wikidata_id\": 'Q1136',\n    \"official_api_documentation\": 'https://www.reddit.com/dev/api',\n    \"use_official_api\": True,\n    \"require_api_key\": False,\n    \"results\": 'JSON',\n}\n\n# engine dependent config\ncategories = ['social media']\npage_size = 25\n\n# search-url\nbase_url = 'https://www.reddit.com/'\nsearch_url = base_url + 'search.json?{query}'\n\n\n# do search-request\ndef request(query, params):\n    query = urlencode({'q': query, 'limit': page_size})\n    params['url'] = search_url.format(query=query)\n\n    return params\n\n\n# get response from search-request\ndef response(resp):\n    img_results = []\n    text_results = []\n\n    search_results = json.loads(resp.text)\n\n    # return empty array if there are no results\n    if 'data' not in search_results:\n        return []\n\n    posts = search_results.get('data', {}).get('children', [])\n\n    # process results\n    for post in posts:\n        data = post['data']\n\n        # extract post information\n        params = {\n            'url': urljoin(base_url, data['permalink']),\n            'title': data['title']\n        }\n\n        # if thumbnail field contains a valid URL, we need to change template\n        thumbnail = data['thumbnail']\n        url_info = urlparse(thumbnail)\n        # netloc & path\n        if url_info[1] != '' and url_info[2] != '':\n            params['img_src'] = data['url']\n            params['thumbnail_src'] = thumbnail\n            params['template'] = 'images.html'\n            img_results.append(params)\n        else:\n            created = datetime.fromtimestamp(data['created_utc'])\n            content = data['selftext']\n            if len(content) > 500:\n                content = content[:500] + '...'\n            params['content'] = content\n            params['publishedDate'] = created\n            text_results.append(params)\n\n    # show images first and text results second\n    return img_results + text_results\n", "path": "searx/engines/reddit.py"}]}