support for non-pow 2 textures