save frames as jpg and zero-pad filenames