Javascript/WebPageImageDownloader: Bugfix, binary file writing