moved the drawing of render and added active for layers in the PasteCanvas