Instance-level and Class-level Contrastive Incremental Learning for Image Classification