Fix calculation of bounding rect for Layer_Pastecanvas in Duckmatic