EPL2JPG converted script update as per legacy script