URLEncode picture "img src" and "a href"s.

Spaces and HTML characters(`"`, `#`) were causing images to improperly
load.

Don't display error message if there are no images.
Merge pull request #2 from selesse/master

Fix tiny bugs in image viewer