added withCredentials field for textures