Update Image Algorithm