canvas: give order to auto-generated attached media