Modified function ext_picprev
Minor changes
Some changes