Use Layer::simple_clone() rather than Layer::clone() in optimize_canvas() to prevent...