Added the ability to handle redirects for the image uri