EEC: Learning to Encode and Regenerate Images for Continual Learning