Remember last filename as well as last directory for capturing