bug fix image index