2C-Net: integrate image compression and classification via deep neural network