fix image reordering