fix image loading issue