Bugfixes for image encoding and URLs that 404