fix image not show when generate pdf, add showMateri