fix image loading