add option to specify a filenameextension for parsed images