change txt contents to jpg format