Update imwri and remove dllpath argument