update image replacement