Fixed issue where, if a page did not have a doctype, the warc generation procedure would halt.
Added better recording of images' binary data to file