fixed resetting of ImagePath at start of scriptrun