Image: Improves URI condition. (#971 & #999)
* Rescues from exception for #971.
* Fixes CA warning.