setting up gl based on image width and height
created buffers, tiling texture
fix texture index offset