Note that we can only upload the images that are retrieved either from the same domain or from domains that accept cross-origin requests (CORS).