fix image popup issue