match materials from reference image