add popup window for images.
few js modification