Added jpg movie support and expanded the script to run over the f1 and f7 fields.