fix image display issue