Rewritten screenshot function. Can input file name. Also added file: prefix