update code fix bug null images