Material not updating the texture in script

Thank you again.
Please help on the below query as well.