fix reload of page on image popup