we need to revoke that url when the image has loaded or has an error