fix image not displayed issue.