added image popup function