fix fetch image bug