support for image urls containing spaces

Signed-off-by: Wouter Vroege <wouter@woutervroege.nl>