More memory fixes.

Fixed buttons and added in auto jigsaw selection.