fix app crashes if image contains whitespace in remote url