apply the reference image