code required to save image caption file to disk