removed sys.argv from save_pic function, turned into parameter