fix store remote image bug add unit test