px.remove_outer function

Remove all connected regions that touch image boundaries