diff --git a/e107_handlers/plugin_class.php b/e107_handlers/plugin_class.php
index 95e770ab3..6b4e8a88f 100644
--- a/e107_handlers/plugin_class.php
+++ b/e107_handlers/plugin_class.php
@@ -1861,12 +1861,14 @@ class e107plugin
$prevType = $type;
- $data['owner'] = $folder;
- $data['category'] = $folder."_".$type;
- $data['title'] = $v['@value'];
- $data['sef'] = vartrue($v['@attributes']['sef']);
+ $data['owner'] = $folder;
+ $data['image'] = vartrue($v['@attributes']['image']);
+ $data['category'] = $folder."_".$type;
+ $data['title'] = $v['@value'];
+ $data['sef'] = vartrue($v['@attributes']['sef']);
// $data['type'] = $v['@attributes']['type']; //TODO
- $data['class'] = 253;
+ $data['class'] = 253;
+
$status = e107::getMedia()->createCategory($data) ? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR;
$mes->add("Adding Media Category: {$data['category']}", $status);
e107::getMedia()->import($data['category'],e_PLUGIN.$folder, false,'min-size=20000');
diff --git a/e107_plugins/gallery/images/butterfly.jpg b/e107_plugins/gallery/images/butterfly.jpg
new file mode 100644
index 000000000..52b305e55
Binary files /dev/null and b/e107_plugins/gallery/images/butterfly.jpg differ
diff --git a/e107_plugins/gallery/images/horse.jpg b/e107_plugins/gallery/images/horse.jpg
new file mode 100644
index 000000000..cbf2fe6d0
Binary files /dev/null and b/e107_plugins/gallery/images/horse.jpg differ
diff --git a/e107_plugins/gallery/images/lake-and-forest.jpg b/e107_plugins/gallery/images/lake-and-forest.jpg
new file mode 100644
index 000000000..39bc19ed9
Binary files /dev/null and b/e107_plugins/gallery/images/lake-and-forest.jpg differ
diff --git a/e107_plugins/gallery/plugin.xml b/e107_plugins/gallery/plugin.xml
index 0014d46c9..3a3eae9a7 100644
--- a/e107_plugins/gallery/plugin.xml
+++ b/e107_plugins/gallery/plugin.xml
@@ -12,7 +12,7 @@
- Gallery 1
+ Gallery 1
800