diff --git a/test/data/tall.dzi b/test/data/tall.dzi
new file mode 100644
index 00000000..ae97400c
--- /dev/null
+++ b/test/data/tall.dzi
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/test/data/tall_files/0/0_0.jpg b/test/data/tall_files/0/0_0.jpg
new file mode 100644
index 00000000..f4539bd5
Binary files /dev/null and b/test/data/tall_files/0/0_0.jpg differ
diff --git a/test/data/tall_files/1/0_0.jpg b/test/data/tall_files/1/0_0.jpg
new file mode 100644
index 00000000..41814a0a
Binary files /dev/null and b/test/data/tall_files/1/0_0.jpg differ
diff --git a/test/data/tall_files/10/0_0.jpg b/test/data/tall_files/10/0_0.jpg
new file mode 100644
index 00000000..8fda66ad
Binary files /dev/null and b/test/data/tall_files/10/0_0.jpg differ
diff --git a/test/data/tall_files/10/0_1.jpg b/test/data/tall_files/10/0_1.jpg
new file mode 100644
index 00000000..45a6df84
Binary files /dev/null and b/test/data/tall_files/10/0_1.jpg differ
diff --git a/test/data/tall_files/10/0_2.jpg b/test/data/tall_files/10/0_2.jpg
new file mode 100644
index 00000000..6be93c69
Binary files /dev/null and b/test/data/tall_files/10/0_2.jpg differ
diff --git a/test/data/tall_files/10/0_3.jpg b/test/data/tall_files/10/0_3.jpg
new file mode 100644
index 00000000..f171102a
Binary files /dev/null and b/test/data/tall_files/10/0_3.jpg differ
diff --git a/test/data/tall_files/11/0_0.jpg b/test/data/tall_files/11/0_0.jpg
new file mode 100644
index 00000000..8f1f1208
Binary files /dev/null and b/test/data/tall_files/11/0_0.jpg differ
diff --git a/test/data/tall_files/11/0_1.jpg b/test/data/tall_files/11/0_1.jpg
new file mode 100644
index 00000000..989e6ef8
Binary files /dev/null and b/test/data/tall_files/11/0_1.jpg differ
diff --git a/test/data/tall_files/11/0_2.jpg b/test/data/tall_files/11/0_2.jpg
new file mode 100644
index 00000000..4cc29c68
Binary files /dev/null and b/test/data/tall_files/11/0_2.jpg differ
diff --git a/test/data/tall_files/11/0_3.jpg b/test/data/tall_files/11/0_3.jpg
new file mode 100644
index 00000000..a2eebefa
Binary files /dev/null and b/test/data/tall_files/11/0_3.jpg differ
diff --git a/test/data/tall_files/11/0_4.jpg b/test/data/tall_files/11/0_4.jpg
new file mode 100644
index 00000000..151233df
Binary files /dev/null and b/test/data/tall_files/11/0_4.jpg differ
diff --git a/test/data/tall_files/11/0_5.jpg b/test/data/tall_files/11/0_5.jpg
new file mode 100644
index 00000000..abbfae7e
Binary files /dev/null and b/test/data/tall_files/11/0_5.jpg differ
diff --git a/test/data/tall_files/11/0_6.jpg b/test/data/tall_files/11/0_6.jpg
new file mode 100644
index 00000000..ecb131c5
Binary files /dev/null and b/test/data/tall_files/11/0_6.jpg differ
diff --git a/test/data/tall_files/11/0_7.jpg b/test/data/tall_files/11/0_7.jpg
new file mode 100644
index 00000000..260e113c
Binary files /dev/null and b/test/data/tall_files/11/0_7.jpg differ
diff --git a/test/data/tall_files/11/1_0.jpg b/test/data/tall_files/11/1_0.jpg
new file mode 100644
index 00000000..fc22c286
Binary files /dev/null and b/test/data/tall_files/11/1_0.jpg differ
diff --git a/test/data/tall_files/11/1_1.jpg b/test/data/tall_files/11/1_1.jpg
new file mode 100644
index 00000000..9bf60a2d
Binary files /dev/null and b/test/data/tall_files/11/1_1.jpg differ
diff --git a/test/data/tall_files/11/1_2.jpg b/test/data/tall_files/11/1_2.jpg
new file mode 100644
index 00000000..b1c61b11
Binary files /dev/null and b/test/data/tall_files/11/1_2.jpg differ
diff --git a/test/data/tall_files/11/1_3.jpg b/test/data/tall_files/11/1_3.jpg
new file mode 100644
index 00000000..76ac9a05
Binary files /dev/null and b/test/data/tall_files/11/1_3.jpg differ
diff --git a/test/data/tall_files/11/1_4.jpg b/test/data/tall_files/11/1_4.jpg
new file mode 100644
index 00000000..abd973c2
Binary files /dev/null and b/test/data/tall_files/11/1_4.jpg differ
diff --git a/test/data/tall_files/11/1_5.jpg b/test/data/tall_files/11/1_5.jpg
new file mode 100644
index 00000000..c747e948
Binary files /dev/null and b/test/data/tall_files/11/1_5.jpg differ
diff --git a/test/data/tall_files/11/1_6.jpg b/test/data/tall_files/11/1_6.jpg
new file mode 100644
index 00000000..f6b9f0c0
Binary files /dev/null and b/test/data/tall_files/11/1_6.jpg differ
diff --git a/test/data/tall_files/11/1_7.jpg b/test/data/tall_files/11/1_7.jpg
new file mode 100644
index 00000000..00c74b8d
Binary files /dev/null and b/test/data/tall_files/11/1_7.jpg differ
diff --git a/test/data/tall_files/2/0_0.jpg b/test/data/tall_files/2/0_0.jpg
new file mode 100644
index 00000000..9551d08d
Binary files /dev/null and b/test/data/tall_files/2/0_0.jpg differ
diff --git a/test/data/tall_files/3/0_0.jpg b/test/data/tall_files/3/0_0.jpg
new file mode 100644
index 00000000..37f6d160
Binary files /dev/null and b/test/data/tall_files/3/0_0.jpg differ
diff --git a/test/data/tall_files/4/0_0.jpg b/test/data/tall_files/4/0_0.jpg
new file mode 100644
index 00000000..679a80bb
Binary files /dev/null and b/test/data/tall_files/4/0_0.jpg differ
diff --git a/test/data/tall_files/5/0_0.jpg b/test/data/tall_files/5/0_0.jpg
new file mode 100644
index 00000000..97783402
Binary files /dev/null and b/test/data/tall_files/5/0_0.jpg differ
diff --git a/test/data/tall_files/6/0_0.jpg b/test/data/tall_files/6/0_0.jpg
new file mode 100644
index 00000000..defd756e
Binary files /dev/null and b/test/data/tall_files/6/0_0.jpg differ
diff --git a/test/data/tall_files/7/0_0.jpg b/test/data/tall_files/7/0_0.jpg
new file mode 100644
index 00000000..dfdc4264
Binary files /dev/null and b/test/data/tall_files/7/0_0.jpg differ
diff --git a/test/data/tall_files/8/0_0.jpg b/test/data/tall_files/8/0_0.jpg
new file mode 100644
index 00000000..56df114e
Binary files /dev/null and b/test/data/tall_files/8/0_0.jpg differ
diff --git a/test/data/tall_files/9/0_0.jpg b/test/data/tall_files/9/0_0.jpg
new file mode 100644
index 00000000..c797a643
Binary files /dev/null and b/test/data/tall_files/9/0_0.jpg differ
diff --git a/test/data/tall_files/9/0_1.jpg b/test/data/tall_files/9/0_1.jpg
new file mode 100644
index 00000000..858a9b70
Binary files /dev/null and b/test/data/tall_files/9/0_1.jpg differ
diff --git a/test/data/wide.dzi b/test/data/wide.dzi
new file mode 100644
index 00000000..e6877fd9
--- /dev/null
+++ b/test/data/wide.dzi
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/test/data/wide_files/0/0_0.jpg b/test/data/wide_files/0/0_0.jpg
new file mode 100644
index 00000000..f4539bd5
Binary files /dev/null and b/test/data/wide_files/0/0_0.jpg differ
diff --git a/test/data/wide_files/1/0_0.jpg b/test/data/wide_files/1/0_0.jpg
new file mode 100644
index 00000000..dfb59057
Binary files /dev/null and b/test/data/wide_files/1/0_0.jpg differ
diff --git a/test/data/wide_files/10/0_0.jpg b/test/data/wide_files/10/0_0.jpg
new file mode 100644
index 00000000..37dcf406
Binary files /dev/null and b/test/data/wide_files/10/0_0.jpg differ
diff --git a/test/data/wide_files/10/1_0.jpg b/test/data/wide_files/10/1_0.jpg
new file mode 100644
index 00000000..5c62e66e
Binary files /dev/null and b/test/data/wide_files/10/1_0.jpg differ
diff --git a/test/data/wide_files/10/2_0.jpg b/test/data/wide_files/10/2_0.jpg
new file mode 100644
index 00000000..09c0b4b3
Binary files /dev/null and b/test/data/wide_files/10/2_0.jpg differ
diff --git a/test/data/wide_files/10/3_0.jpg b/test/data/wide_files/10/3_0.jpg
new file mode 100644
index 00000000..a075a45e
Binary files /dev/null and b/test/data/wide_files/10/3_0.jpg differ
diff --git a/test/data/wide_files/11/0_0.jpg b/test/data/wide_files/11/0_0.jpg
new file mode 100644
index 00000000..a8141fac
Binary files /dev/null and b/test/data/wide_files/11/0_0.jpg differ
diff --git a/test/data/wide_files/11/0_1.jpg b/test/data/wide_files/11/0_1.jpg
new file mode 100644
index 00000000..8c76a0bf
Binary files /dev/null and b/test/data/wide_files/11/0_1.jpg differ
diff --git a/test/data/wide_files/11/1_0.jpg b/test/data/wide_files/11/1_0.jpg
new file mode 100644
index 00000000..9ab32b4f
Binary files /dev/null and b/test/data/wide_files/11/1_0.jpg differ
diff --git a/test/data/wide_files/11/1_1.jpg b/test/data/wide_files/11/1_1.jpg
new file mode 100644
index 00000000..f3a7e82c
Binary files /dev/null and b/test/data/wide_files/11/1_1.jpg differ
diff --git a/test/data/wide_files/11/2_0.jpg b/test/data/wide_files/11/2_0.jpg
new file mode 100644
index 00000000..7744b9c6
Binary files /dev/null and b/test/data/wide_files/11/2_0.jpg differ
diff --git a/test/data/wide_files/11/2_1.jpg b/test/data/wide_files/11/2_1.jpg
new file mode 100644
index 00000000..77da6f71
Binary files /dev/null and b/test/data/wide_files/11/2_1.jpg differ
diff --git a/test/data/wide_files/11/3_0.jpg b/test/data/wide_files/11/3_0.jpg
new file mode 100644
index 00000000..7ea21cfa
Binary files /dev/null and b/test/data/wide_files/11/3_0.jpg differ
diff --git a/test/data/wide_files/11/3_1.jpg b/test/data/wide_files/11/3_1.jpg
new file mode 100644
index 00000000..486dba59
Binary files /dev/null and b/test/data/wide_files/11/3_1.jpg differ
diff --git a/test/data/wide_files/11/4_0.jpg b/test/data/wide_files/11/4_0.jpg
new file mode 100644
index 00000000..1ea7c926
Binary files /dev/null and b/test/data/wide_files/11/4_0.jpg differ
diff --git a/test/data/wide_files/11/4_1.jpg b/test/data/wide_files/11/4_1.jpg
new file mode 100644
index 00000000..d55b44bc
Binary files /dev/null and b/test/data/wide_files/11/4_1.jpg differ
diff --git a/test/data/wide_files/11/5_0.jpg b/test/data/wide_files/11/5_0.jpg
new file mode 100644
index 00000000..c87ba066
Binary files /dev/null and b/test/data/wide_files/11/5_0.jpg differ
diff --git a/test/data/wide_files/11/5_1.jpg b/test/data/wide_files/11/5_1.jpg
new file mode 100644
index 00000000..241fc4a4
Binary files /dev/null and b/test/data/wide_files/11/5_1.jpg differ
diff --git a/test/data/wide_files/11/6_0.jpg b/test/data/wide_files/11/6_0.jpg
new file mode 100644
index 00000000..74c2b4ec
Binary files /dev/null and b/test/data/wide_files/11/6_0.jpg differ
diff --git a/test/data/wide_files/11/6_1.jpg b/test/data/wide_files/11/6_1.jpg
new file mode 100644
index 00000000..3630ca68
Binary files /dev/null and b/test/data/wide_files/11/6_1.jpg differ
diff --git a/test/data/wide_files/11/7_0.jpg b/test/data/wide_files/11/7_0.jpg
new file mode 100644
index 00000000..97bbe8e9
Binary files /dev/null and b/test/data/wide_files/11/7_0.jpg differ
diff --git a/test/data/wide_files/11/7_1.jpg b/test/data/wide_files/11/7_1.jpg
new file mode 100644
index 00000000..58d0be3e
Binary files /dev/null and b/test/data/wide_files/11/7_1.jpg differ
diff --git a/test/data/wide_files/2/0_0.jpg b/test/data/wide_files/2/0_0.jpg
new file mode 100644
index 00000000..032339aa
Binary files /dev/null and b/test/data/wide_files/2/0_0.jpg differ
diff --git a/test/data/wide_files/3/0_0.jpg b/test/data/wide_files/3/0_0.jpg
new file mode 100644
index 00000000..25ccad52
Binary files /dev/null and b/test/data/wide_files/3/0_0.jpg differ
diff --git a/test/data/wide_files/4/0_0.jpg b/test/data/wide_files/4/0_0.jpg
new file mode 100644
index 00000000..c3d28c32
Binary files /dev/null and b/test/data/wide_files/4/0_0.jpg differ
diff --git a/test/data/wide_files/5/0_0.jpg b/test/data/wide_files/5/0_0.jpg
new file mode 100644
index 00000000..e52b385a
Binary files /dev/null and b/test/data/wide_files/5/0_0.jpg differ
diff --git a/test/data/wide_files/6/0_0.jpg b/test/data/wide_files/6/0_0.jpg
new file mode 100644
index 00000000..6e40a830
Binary files /dev/null and b/test/data/wide_files/6/0_0.jpg differ
diff --git a/test/data/wide_files/7/0_0.jpg b/test/data/wide_files/7/0_0.jpg
new file mode 100644
index 00000000..724c581b
Binary files /dev/null and b/test/data/wide_files/7/0_0.jpg differ
diff --git a/test/data/wide_files/8/0_0.jpg b/test/data/wide_files/8/0_0.jpg
new file mode 100644
index 00000000..85330803
Binary files /dev/null and b/test/data/wide_files/8/0_0.jpg differ
diff --git a/test/data/wide_files/9/0_0.jpg b/test/data/wide_files/9/0_0.jpg
new file mode 100644
index 00000000..c8a44d26
Binary files /dev/null and b/test/data/wide_files/9/0_0.jpg differ
diff --git a/test/data/wide_files/9/1_0.jpg b/test/data/wide_files/9/1_0.jpg
new file mode 100644
index 00000000..54213e7a
Binary files /dev/null and b/test/data/wide_files/9/1_0.jpg differ