scale texture buffer to support tiled images