Added logic to correctly count the bytes of the binary image data. CDX-Indexer reports that the content lengths are valid but the code to store the image data is not. #44.