update weight image