Texture atlas works! Don't need to run that function anymore
Made mapGlobalUV() a separate method, taking the iimage width