fix image count