Handle CopyRect like any other encoding

Avoids having to special case things. Keeps the code simpler.
7 files changed