Added automatic threshold algorithm to pixel layer, added mini view to
toolbox.