update image path to use absolute path