diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -436,8 +436,8 @@ AFRAME.registerShader('gif', {
     this.__frames = frames
     this.__frameCnt = times.length
     this.__startTime = Date.now()
-    this.__width = THREE.Math.nearestPowerOfTwo(frames[0].width)
-    this.__height = THREE.Math.nearestPowerOfTwo(frames[0].height)
+    this.__width = THREE.Math.floorPowerOfTwo(frames[0].width)
+    this.__height = THREE.Math.floorPowerOfTwo(frames[0].height)
     this.__cnv.width = this.__width
     this.__cnv.height = this.__height
     this.__draw()
Changed `nearestPowerOfTwo` with `floorPowerOfTwo` for aframe <I>

aframe <I> uses THREE.WebGLRenderer <I> and .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo().