isPowerOfTwo = function isPowerOfTwo(x) {
              return (x & (x - 1)) === 0;
            }
Sets the texture wrapping mode. This controls how textures behave
when their uv's go outside of the 0 - 1 range. There are three options:
CLAMP, REPEAT, and MIRROR. REPEAT & MIRROR are only available if the texture
is a power of two size (128, 256, 512, 1024, etc.).
@method setWrapMode
@param {String} wrapX Controls the horizontal texture wrapping behavior
@param {String} wrapY Controls the vertical texture wrapping behavior