fix image preloading