Initial code for COPY_RECT and WIPE