fix image display problem