Added code to remove Files:xyz.png and unwanted information while writing to files.