diff --git a/NTFT.py b/NTFT.py
index 6d3d6a9..e1530a7 100644
--- a/NTFT.py
+++ b/NTFT.py
@@ -120,11 +120,11 @@ class NTFT:
#the actual stored data is a image with the sizes padded to the nearest power of 2
psize = []
- for i in size:
+ for i in (w, h):
p = 1
while 1<
[