replace the fabric with the reference pattern