Fixed createBase function to use RectangleTextures when power of 2

Thanks to Jeff's suggestion for pointing out that in context loss RectangleTextures would not be used when a power of 2. So I have changed this to use RectangleTextures when mipmaps are false and if RectangleTextures are available