fix elimage script