Move rectangular selection to separate file