fix image display bug