Handled possible rehosting issues.

If an image is too big for imgur or just fails to rehost for some
reason, it will return the original link, even if --rehost is specified.