Fix issue with image modal and search