Add time to saved media filenames

see #1689
I understand seconds or a counter, but not really both. If a counter is necessary, make the loop have a limit and move it to a util method.