fix bug: not rendering image correctly after a search